diff options
author | Amir Goldstein <[email protected]> | 2023-11-22 14:27:07 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-11-24 09:22:28 +0100 |
commit | 2f4d8ad82511a336f8a805e3759c5189a25bb286 (patch) | |
tree | 3a281c85d9d272663b40e913936e42a31a607e94 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 0b5263d12aed0437c1bdb7ba0be27437fc12c274 (diff) |
btrfs: move file_start_write() to after permission hook
In vfs code, file_start_write() is usually called after the permission
hook in rw_verify_area(). btrfs_ioctl_encoded_write() in an exception
to this rule.
Move file_start_write() to after the rw_verify_area() check in encoded
write to make the permission hook "start-write-safe".
This is needed for fanotify "pre content" events.
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions