diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-09-20 13:55:31 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-12-13 18:13:16 +0100 |
commit | 9f12bd119e408388233e7aeb1152f372a8b5dcad (patch) | |
tree | 9cf2b88f6c466ec72a52be088d1db3ab33b60906 /fs/ceph/super.h | |
parent | ceph: Avoid data inconsistency due to d-cache aliasing in readpage() (diff) | |
download | linux-9f12bd119e408388233e7aeb1152f372a8b5dcad.tar.xz linux-9f12bd119e408388233e7aeb1152f372a8b5dcad.zip |
ceph: drop unconnected inodes
Positve dentry and corresponding inode are always accompanied in MDS reply.
So no need to keep inode in the cache after dropping all its aliases.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ceph/super.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index ef4ac38bb614..8de94b564d67 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -691,6 +691,7 @@ extern const struct inode_operations ceph_file_iops; extern struct inode *ceph_alloc_inode(struct super_block *sb); extern void ceph_destroy_inode(struct inode *inode); +extern int ceph_drop_inode(struct inode *inode); extern struct inode *ceph_get_inode(struct super_block *sb, struct ceph_vino vino); |