summaryrefslogtreecommitdiff
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2021-08-25 16:45:45 +0300
committerIlya Dryomov <idryomov@gmail.com>2021-09-02 23:49:17 +0300
commita76d0a9c288ea7f5fc01bf05485573ce6b36b839 (patch)
tree6ea3582b1c6ad1f0e50bb51e91a90c0109f2a1fb /fs/ceph/mds_client.c
parent42ad631b4d0e0d6da0bfe375af99887251fbf970 (diff)
downloadlinux-a76d0a9c288ea7f5fc01bf05485573ce6b36b839.tar.xz
ceph: don't WARN if we're forcibly removing the session caps
For example in the case of a forced umount, we'll remove all the session caps even if they are dirty. Move the warning to a wrapper function and make most of the callers use it. Call the core function when removing caps due to a forced umount. Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index c3a0e549c413..94e90dba46d7 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2016,7 +2016,7 @@ static int trim_caps_cb(struct inode *inode, struct ceph_cap *cap, void *arg)
if (oissued) {
/* we aren't the only cap.. just remove us */
- __ceph_remove_cap(cap, true);
+ ceph_remove_cap(cap, true);
(*remaining)--;
} else {
struct dentry *dentry;