* [PATCH v2] ovl: change ovl_copy_up_flags static
@ 2020-06-21 14:30 youngjun
2020-07-15 19:37 ` Miklos Szeredi
0 siblings, 1 reply; 2+ messages in thread
From: youngjun @ 2020-06-21 14:30 UTC (permalink / raw)
To: Amir Goldstein; +Cc: linux-unionfs, youngjun
"ovl_copy_up_flags" is used in copy_up.c.
so, change it static.
Signed-off-by: youngjun <her0gyugyu@gmail.com>
---
fs/overlayfs/copy_up.c | 2 +-
fs/overlayfs/overlayfs.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c
index 79dd052c7dbf..5e0cde85bd6b 100644
--- a/fs/overlayfs/copy_up.c
+++ b/fs/overlayfs/copy_up.c
@@ -895,7 +895,7 @@ static int ovl_copy_up_one(struct dentry *parent, struct dentry *dentry,
return err;
}
-int ovl_copy_up_flags(struct dentry *dentry, int flags)
+static int ovl_copy_up_flags(struct dentry *dentry, int flags)
{
int err = 0;
const struct cred *old_cred = ovl_override_creds(dentry->d_sb);
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h
index b725c7f15ff4..29bc1ec699e7 100644
--- a/fs/overlayfs/overlayfs.h
+++ b/fs/overlayfs/overlayfs.h
@@ -483,7 +483,6 @@ void ovl_aio_request_cache_destroy(void);
/* copy_up.c */
int ovl_copy_up(struct dentry *dentry);
int ovl_copy_up_with_data(struct dentry *dentry);
-int ovl_copy_up_flags(struct dentry *dentry, int flags);
int ovl_maybe_copy_up(struct dentry *dentry, int flags);
int ovl_copy_xattr(struct dentry *old, struct dentry *new);
int ovl_set_attr(struct dentry *upper, struct kstat *stat);
--
2.17.1
Thanks Amir.
I remove the content which is not part of this patch.
(the message-id which I sent is wrong. so I resend it.)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] ovl: change ovl_copy_up_flags static
2020-06-21 14:30 [PATCH v2] ovl: change ovl_copy_up_flags static youngjun
@ 2020-07-15 19:37 ` Miklos Szeredi
0 siblings, 0 replies; 2+ messages in thread
From: Miklos Szeredi @ 2020-07-15 19:37 UTC (permalink / raw)
To: youngjun; +Cc: Amir Goldstein, overlayfs
On Sun, Jun 21, 2020 at 4:33 PM youngjun <her0gyugyu@gmail.com> wrote:
>
> "ovl_copy_up_flags" is used in copy_up.c.
> so, change it static.
>
> Signed-off-by: youngjun <her0gyugyu@gmail.com>
Thanks, applied.
Miklos
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-15 19:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21 14:30 [PATCH v2] ovl: change ovl_copy_up_flags static youngjun
2020-07-15 19:37 ` Miklos Szeredi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.