]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: iget for metadata inodes
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:18:50 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:31 +0000 (13:38 -0800)
commitdcf606914334c640fd90853ae86e275b21ba0309
treed6bb63a466fdd32055b45ecbcb080d15abcbb52f
parent4f3d4dd1b04b2ba0bf236fbaa3c3c0c669aa5a47
xfs: iget for metadata inodes

Create a xfs_trans_metafile_iget function for metadata inodes to ensure
that when we try to iget a metadata file, the inode is allocated and its
file mode matches the metadata file type the caller expects.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_metafile.h [new file with mode: 0644]
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_rtalloc.c