diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-06-09 09:20:12 (GMT) |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-06-25 08:49:31 (GMT) |
commit | 8310b08913eca8aee98744c9aff1ec0d1f603b19 (patch) | |
tree | ac58f8ea0c44c98a675242c1a2a338f6333f03ba /fs/ceph/inode.c | |
parent | 553adfd941f8ca622965ef809553d918ea039929 (diff) | |
download | linux-8310b08913eca8aee98744c9aff1ec0d1f603b19.tar.xz |
ceph: track pending caps flushing globally
So we know TID of the oldest pending caps flushing. Later patch will
send this information to MDS, so that MDS can trim its completed caps
flush list.
Tracking pending caps flushing globally also simplifies syncfs code.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 6d3f19d..3326302f 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -416,7 +416,6 @@ struct inode *ceph_alloc_inode(struct super_block *sb) ci->i_flushing_caps = 0; INIT_LIST_HEAD(&ci->i_dirty_item); INIT_LIST_HEAD(&ci->i_flushing_item); - ci->i_cap_flush_seq = 0; ci->i_cap_flush_tree = RB_ROOT; init_waitqueue_head(&ci->i_cap_wq); ci->i_hold_caps_min = 0; |