diff options
| author | 2020-09-24 11:39:15 -0500 | |
|---|---|---|
| committer | 2020-12-08 15:53:47 +0100 | |
| commit | b8d8e1fd570a194904f545b135efc880d96a41a4 (patch) | |
| tree | 00f6b7f6e18719abead70cc06033312805e7a06d /tools/perf/scripts/python | |
| parent | btrfs: check FS error state bit early during write (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 <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
