diff options
author | Dave Chinner <[email protected]> | 2022-07-14 12:02:46 +1000 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2022-07-14 12:02:46 +1000 |
commit | de67dc575434dca8d60b1e181ed5dd296392ffce (patch) | |
tree | 7cbd0f2e80bd660b3875ea40015950f1c78da36b /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 85c73bf726e41be276bcad3325d9a8aef10be289 (diff) |
xfs: break up xfs_buf_find() into individual pieces
xfs_buf_find() is made up of three main parts: lookup, insert and
locking. The interactions with xfs_buf_get_map() require it to be
called twice - once for a pure lookup, and again on lookup failure
so the insert path can be run. We want to simplify this down a lot,
so split it into a fast path lookup, a slow path insert and a "lock
the found buffer" helper. This will then let us integrate these
operations more effectively into xfs_buf_get_map() in future
patches.
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions