summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-05-04 05:40:30 +0200
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 01:15:38 +0200
commit1b1bc16d66a7c7af3b4f30d1cf5a363168b217f4 (patch)
tree95634e0cb65929da7dedbc1cec5d10593e12da93 /fs/ceph/super.h
parentceph: keep leaf frag when updating fragtree (diff)
downloadlinux-1b1bc16d66a7c7af3b4f30d1cf5a363168b217f4.tar.xz
linux-1b1bc16d66a7c7af3b4f30d1cf5a363168b217f4.zip
ceph: improve fragtree change detection
check if number of splits in i_fragtree is equal to number of splits in mds reply Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index c9b671dfff81..a268f18d2119 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -297,6 +297,7 @@ struct ceph_inode_info {
u64 i_files, i_subdirs;
struct rb_root i_fragtree;
+ int i_fragtree_nsplits;
struct mutex i_fragtree_mutex;
struct ceph_inode_xattrs_info i_xattrs;