summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/overlayfs.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-10-24 10:38:33 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2018-01-24 05:25:56 -0500
commite7dd0e71348c1e3bc4b9d767c1ffbcbdee46a726 (patch)
treedcba3e99e1d07da04c4f9cfec83715c4b0d169ea /fs/overlayfs/overlayfs.h
parent89a17556ce4d113f6e7896e118a14f79a84484e9 (diff)
ovl: whiteout index when union nlink drops to zero
With NFS export feature enabled, when overlay inode nlink drops to zero, instead of removing the index entry, replace it with a whiteout index entry. This is needed for NFS export in order to prevent future open by handle from opening the lower file directly. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
-rw-r--r--fs/overlayfs/overlayfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h
index d7e65284c13b..8f4313c6693b 100644
--- a/fs/overlayfs/overlayfs.h
+++ b/fs/overlayfs/overlayfs.h
@@ -321,6 +321,8 @@ static inline void ovl_copyattr(struct inode *from, struct inode *to)
321/* dir.c */ 321/* dir.c */
322extern const struct inode_operations ovl_dir_inode_operations; 322extern const struct inode_operations ovl_dir_inode_operations;
323struct dentry *ovl_lookup_temp(struct dentry *workdir); 323struct dentry *ovl_lookup_temp(struct dentry *workdir);
324int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir,
325 struct dentry *dentry);
324struct cattr { 326struct cattr {
325 dev_t rdev; 327 dev_t rdev;
326 umode_t mode; 328 umode_t mode;