diff options
| author | Darrick J. Wong <[email protected]> | 2024-11-21 00:20:26 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2024-12-23 21:06:05 +0000 |
| commit | 219ee99d3673ded7abbc13ddd4d7847e92661e2c (patch) | |
| tree | fa66d582771540a316e9b5ee5536367ca5b8a6fb /fs/xfs/libxfs/xfs_rtgroup.c | |
| parent | xfs: support recovering rmap intent items targetting realtime extents (diff) | |
| download | kernel-219ee99d3673ded7abbc13ddd4d7847e92661e2c.tar.gz kernel-219ee99d3673ded7abbc13ddd4d7847e92661e2c.zip | |
xfs: pretty print metadata file types in error messages
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" <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rtgroup.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_rtgroup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_rtgroup.c b/fs/xfs/libxfs/xfs_rtgroup.c index a79b734e7044..9e5fdc0dc55c 100644 --- a/fs/xfs/libxfs/xfs_rtgroup.c +++ b/fs/xfs/libxfs/xfs_rtgroup.c @@ -282,7 +282,8 @@ xfs_rtginode_ilock_print_fn( const struct xfs_inode *ip = container_of(m, struct xfs_inode, i_lock.dep_map); - printk(KERN_CONT " rgno=%u", ip->i_projid); + printk(KERN_CONT " rgno=%u metatype=%s", ip->i_projid, + xfs_metafile_type_str(ip->i_metatype)); } /* |
