xfs: refactor realtime inode locking
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 11:20:08 +0000 (13:20 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 12:30:47 +0000 (18:00 +0530)
commitb7e23c0e2e3b1c520a3370f058870b914071a470
tree1d8fb70ef8900831f0fa10efc6111ce157a2c3c9
parent330c4f94b0d73e440de3f738a625e38defe1bc15
xfs: refactor realtime inode locking

Create helper functions to deal with locking realtime metadata inodes.
This enables us to maintain correct locking order once we start adding
the realtime rmap and refcount btree inodes.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/scrub/common.c
fs/xfs/scrub/fscounters.c
fs/xfs/xfs_fsmap.c
fs/xfs/xfs_rtalloc.c