aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/xfs_qm.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2018-05-02 12:54:54 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2018-05-09 10:04:01 -0700
commitdfa03a5f8076c6bf79a9f68ef8f559fb8999cec1 (patch)
treeb0880e4291183eb569e9a7fcc145e108173f6f70 /fs/xfs/xfs_qm.c
parentxfs: simplify xfs_file_iomap_begin() logic (diff)
downloadwireguard-linux-dfa03a5f8076c6bf79a9f68ef8f559fb8999cec1.tar.xz
wireguard-linux-dfa03a5f8076c6bf79a9f68ef8f559fb8999cec1.zip
xfs: clean up locking in xfs_file_iomap_begin
Rather than checking what kind of locking is needed in a helper function and then jumping through hoops to do the locking in line, move the locking to the helper function that does all the checks and rename it to xfs_ilock_for_iomap(). This also allows us to hoist all the nonblocking checks up into the locking helper, further simplifier the code flow in xfs_file_iomap_begin() and making it easier to understand. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_qm.c')
0 files changed, 0 insertions, 0 deletions