ceph: remove delay check logic from ceph_check_caps()
__ceph_caps_file_wanted() already checks 'caps_wanted_delay_min' and 'caps_wanted_delay_max'. There is no need to duplicate the logic in ceph_check_caps() and __send_cap() Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
@@ -472,7 +472,6 @@ struct inode *ceph_alloc_inode(struct super_block *sb)
|
||||
ci->i_prealloc_cap_flush = NULL;
|
||||
INIT_LIST_HEAD(&ci->i_cap_flush_list);
|
||||
init_waitqueue_head(&ci->i_cap_wq);
|
||||
ci->i_hold_caps_min = 0;
|
||||
ci->i_hold_caps_max = 0;
|
||||
INIT_LIST_HEAD(&ci->i_cap_delay_list);
|
||||
INIT_LIST_HEAD(&ci->i_cap_snaps);
|
||||
|
Reference in New Issue
Block a user