diff options
| author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2020-09-24 11:39:15 -0500 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:53:47 +0100 |
| commit | b8d8e1fd570a194904f545b135efc880d96a41a4 (patch) | |
| tree | 00f6b7f6e18719abead70cc06033312805e7a06d /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | c86537a42f8661a26c96cbb32352b33cb57ac75c (diff) | |
| download | linux-b8d8e1fd570a194904f545b135efc880d96a41a4.tar.gz linux-b8d8e1fd570a194904f545b135efc880d96a41a4.zip | |
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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
