aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/libxfs/xfs_inode_fork.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-10-14 10:36:41 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2019-10-21 09:04:58 -0700
commitdf732b29c807640cada8092d76c87e1ed5ce9bba (patch)
tree700c903b5bbbe355f2f963ac2bd166a22d25c399 /fs/xfs/libxfs/xfs_inode_fork.c
parentxfs: move the locking from xlog_state_finish_copy to the callers (diff)
downloadwireguard-linux-df732b29c807640cada8092d76c87e1ed5ce9bba.tar.xz
wireguard-linux-df732b29c807640cada8092d76c87e1ed5ce9bba.zip
xfs: call xlog_state_release_iclog with l_icloglock held
All but one caller of xlog_state_release_iclog hold l_icloglock and need to drop and reacquire it to call xlog_state_release_iclog. Switch the xlog_state_release_iclog calling conventions to expect the lock to be held, and open code the logic (using a shared helper) in the only remaining caller that does not have the lock (and where not holding it is a nice performance optimization). Also move the refactored code to require the least amount of forward declarations. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> [darrick: minor whitespace cleanup] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_inode_fork.c')
0 files changed, 0 insertions, 0 deletions