ceph: remove delay check logic from ceph_check_caps()
authorYan, Zheng <zyan@redhat.com>
Thu, 5 Mar 2020 12:21:01 +0000 (20:21 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:42 +0000 (12:42 +0200)
commita0d93e327fc424b94e78a1b25287bb4e632ee054
tree3a8009ef9428cc1d4ca064a32aac93fa1abff9c1
parent719a2514e9bf313c3627078926d56bc2a8b290d1
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>
fs/ceph/caps.c
fs/ceph/file.c
fs/ceph/inode.c
fs/ceph/super.h