summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/ncp_fs_i.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-12-25 03:41:47 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2015-01-26 05:16:26 +0100
commit5e993e2534e29b62790f9a2908b551b7fb3a63f0 (patch)
tree3278906dba789c91609feb98f636538031e61dd8 /fs/ncpfs/ncp_fs_i.h
parentselinuxfs: don't open-code d_genocide() (diff)
downloadlinux-5e993e2534e29b62790f9a2908b551b7fb3a63f0.tar.xz
linux-5e993e2534e29b62790f9a2908b551b7fb3a63f0.zip
ncpfs: get rid of d_validate() nonsense
What we want is to have non-counting references to children in pagecache of parent directory, and avoid picking them after a child has been freed. Fine, so let's just have ->d_prune() clear parent's inode "has directory contents in page cache" flag. That way we don't need ->d_fsdata for storing offsets, so we can use it as a quick and dirty "is it referenced from page cache" flag. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ncpfs/ncp_fs_i.h')
-rw-r--r--fs/ncpfs/ncp_fs_i.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ncpfs/ncp_fs_i.h b/fs/ncpfs/ncp_fs_i.h
index 4b0bec477846..c4794504f843 100644
--- a/fs/ncpfs/ncp_fs_i.h
+++ b/fs/ncpfs/ncp_fs_i.h
@@ -22,6 +22,7 @@ struct ncp_inode_info {
int access;
int flags;
#define NCPI_KLUDGE_SYMLINK 0x0001
+#define NCPI_DIR_CACHE 0x0002
__u8 file_handle[6];
struct inode vfs_inode;
};