ceph: only touch the caps which have the subset mask requested
For the caps having no any subset mask requested we shouldn't touch them. Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
893e456b2c
commit
9f8b72b3a9
@ -908,6 +908,7 @@ int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int touch)
|
||||
ci_node);
|
||||
if (!__cap_is_valid(cap))
|
||||
continue;
|
||||
if (cap->issued & mask)
|
||||
__touch_cap(cap);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user