diff options
author | 2019-12-16 00:12:07 -0500 | |
---|---|---|
committer | 2020-01-27 16:53:39 +0100 | |
commit | 9f8b72b3a9485d659410989c6daf5467ebe264ea (patch) | |
tree | 80cf0b52084715d38008b1af3f7f46195a73295a /fs/ceph/caps.c | |
parent | ceph: don't clear I_NEW until inode metadata is fully populated (diff) | |
download | wireguard-linux-9f8b72b3a9485d659410989c6daf5467ebe264ea.tar.xz wireguard-linux-9f8b72b3a9485d659410989c6daf5467ebe264ea.zip |
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 <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 9d09bb53c1ab..28ae0c134700 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -908,7 +908,8 @@ int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int touch) ci_node); if (!__cap_is_valid(cap)) continue; - __touch_cap(cap); + if (cap->issued & mask) + __touch_cap(cap); } } return 1; |