]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: pretty print metadata file types in error messages
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:48 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:58 +0000 (09:15 -0800)
commit206412b8eb10d45f3e14cda05cccf02a1c40e70b
tree52396fb353db46457092f983a1f63c0f88d13e7a
parentbb8f58e8524ac7ee479b1c27a025d7d7656e7d8d
xfs: pretty print metadata file types in error messages

Source kernel commit: 219ee99d3673ded7abbc13ddd4d7847e92661e2c

Create a helper function to turn a metadata file type code into a
printable string, and use this to complain about lockdep problems with
rtgroup inodes.  We'll use this more in the next patch.

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