diff options
| author | Dave Chinner <[email protected]> | 2018-05-02 12:54:54 -0700 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2018-05-09 10:04:01 -0700 |
| commit | dfa03a5f8076c6bf79a9f68ef8f559fb8999cec1 (patch) | |
| tree | b0880e4291183eb569e9a7fcc145e108173f6f70 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | d0641780940a9842cbf62114bc8422012c7d88c4 (diff) | |
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 <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions