xfs: Hold inode locks in xfs_trans_alloc_dir
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 15 Apr 2024 21:55:13 +0000 (14:55 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:59:02 +0000 (14:59 -0700)
commitbd5562111d58392298a3c3b93caad71dff681b4b
treee5f802ec7215e6f111c17889afbf045397fb221d
parent267979b4ce75767a9caf69072e1b92416e286a29
xfs: Hold inode locks in xfs_trans_alloc_dir

Modify xfs_trans_alloc_dir to hold locks after return.  Caller will be
responsible for manual unlock.  We will need this later to hold locks
across parent pointer operations

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Catherine Hoang <catherine.hoang@oracle.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_inode.c
fs/xfs/xfs_trans.c