]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: add a lockdep class key for rtgroup inodes
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:41:08 +0000 (13:41 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 9 Oct 2024 02:25:25 +0000 (19:25 -0700)
commitd3fd2830c838a189a5597c2cc19a4b9510d8e60f
tree7c947ead83dc12263722c277353233c2628d5904
parent107068f1d297b2154564e613e399e90004ef51f2
xfs: add a lockdep class key for rtgroup inodes

Add a dynamic lockdep class key for rtgroup inodes.  This will enable
lockdep to deduce inconsistencies in the rtgroup metadata ILOCK locking
order.  Each class can have 8 subclasses, and for now we will only have
2 inodes per group.  This enables rtgroup order and inode order checks
when nesting ILOCKs.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_rtgroup.c