summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2021-09-02 08:31:03 -0400
committerIlya Dryomov <idryomov@gmail.com>2021-09-02 22:49:17 +0200
commit3eaf5aa1cfa8c97c72f5824e2e9263d6cc977b03 (patch)
treeba9f880a0c1eb464270b225bd2526117decaaa84 /fs/ceph
parenta76d0a9c288ea7f5fc01bf05485573ce6b36b839 (diff)
ceph: lockdep annotations for try_nonblocking_invalidate
Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/caps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index f92eeb741160..26c5029629a4 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -1846,6 +1846,8 @@ static u64 __mark_caps_flushing(struct inode *inode,
* try to invalidate mapping pages without blocking.
*/
static int try_nonblocking_invalidate(struct inode *inode)
+ __releases(ci->i_ceph_lock)
+ __acquires(ci->i_ceph_lock)
{
struct ceph_inode_info *ci = ceph_inode(inode);
u32 invalidating_gen = ci->i_rdcache_gen;