xfs: Hold inode locks in xfs_ialloc
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 15 Apr 2024 21:55:12 +0000 (14:55 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:59:02 +0000 (14:59 -0700)
commit267979b4ce75767a9caf69072e1b92416e286a29
tree8a930caa236f77eff08521de712d3bd37a6c5352
parentf103df763563ad6849307ed5985d1513acc586dd
xfs: Hold inode locks in xfs_ialloc

Modify xfs_ialloc 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>
[djwong: hold the parent ilocked across transaction rolls too]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_inode.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_symlink.c