summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2021-08-25 15:45:45 +0200
committerIlya Dryomov <idryomov@gmail.com>2021-09-02 22:49:17 +0200
commita76d0a9c288ea7f5fc01bf05485573ce6b36b839 (patch)
tree6ea3582b1c6ad1f0e50bb51e91a90c0109f2a1fb /fs/ceph/super.h
parentceph: don't WARN if we're force umounting (diff)
downloadlinux-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/super.h')
-rw-r--r--fs/ceph/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index e1d62e4e8780..16c7eb02550c 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -1138,6 +1138,7 @@ extern void ceph_add_cap(struct inode *inode,
unsigned cap, unsigned seq, u64 realmino, int flags,
struct ceph_cap **new_cap);
extern void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release);
+extern void ceph_remove_cap(struct ceph_cap *cap, bool queue_release);
extern void __ceph_remove_caps(struct ceph_inode_info *ci);
extern void ceph_put_cap(struct ceph_mds_client *mdsc,
struct ceph_cap *cap);