diff options
author | Xiubo Li <xiubli@redhat.com> | 2021-08-25 15:45:45 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-09-02 22:49:17 +0200 |
commit | a76d0a9c288ea7f5fc01bf05485573ce6b36b839 (patch) | |
tree | 6ea3582b1c6ad1f0e50bb51e91a90c0109f2a1fb /fs/ceph/mds_client.c | |
parent | ceph: don't WARN if we're force umounting (diff) | |
download | linux-a76d0a9c288ea7f5fc01bf05485573ce6b36b839.tar.xz linux-a76d0a9c288ea7f5fc01bf05485573ce6b36b839.zip |
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.c | 2 |
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; |