diff options
| author | Goldwyn Rodrigues <[email protected]> | 2020-09-24 11:39:15 -0500 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-12-08 15:53:47 +0100 |
| commit | b8d8e1fd570a194904f545b135efc880d96a41a4 (patch) | |
| tree | 00f6b7f6e18719abead70cc06033312805e7a06d /tools/perf/scripts/python/bin | |
| parent | c86537a42f8661a26c96cbb32352b33cb57ac75c (diff) | |
btrfs: introduce btrfs_write_check()
btrfs_write_check() checks write parameters in one place before
beginning a write. This does away with inode_unlock() after every check.
In the later patches, it will help push inode_lock/unlock() in buffered
and direct write functions respectively.
generic_write_checks needs to be called before as it could truncate
iov_iter and its return used as count.
Signed-off-by: Goldwyn Rodrigues <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions