aboutsummaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2017-07-04 22:03:18 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-07-04 22:03:18 +0200
commit55acc6618259c8ff0a400a131f0f4b613e96010a (patch)
tree82f73eccca8d417ec8c77ad1b02dd28748c5c456 /fs/overlayfs/ovl_entry.h
parentovl: use struct copy_up_ctx as function argument (diff)
downloadlinux-dev-55acc6618259c8ff0a400a131f0f4b613e96010a.tar.xz
linux-dev-55acc6618259c8ff0a400a131f0f4b613e96010a.zip
ovl: add flag for upper in ovl_entry
For rename, we need to ensure that an upper alias exists for hard links before attempting the operation. Introduce a flag in ovl_entry to track the state of the upper alias. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r--fs/overlayfs/ovl_entry.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index 9642ec64467b..878a750986dd 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -42,7 +42,10 @@ struct ovl_fs {
/* private information held for every overlayfs dentry */
struct ovl_entry {
union {
- bool opaque;
+ struct {
+ unsigned long has_upper;
+ bool opaque;
+ };
struct rcu_head rcu;
};
unsigned numlower;