diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-07-23 01:28:31 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-11-03 01:28:07 -0500 |
commit | 6b1a5ae9b5886832fb6d52064f6e3c6fcfefce57 (patch) | |
tree | 4ae6dcf443d6f44a007de4a9f7b1f2b70f331562 /rust/helpers/task.c | |
parent | 9bd812744db2e1d27712ab1053527bb54e178e4c (diff) | |
download | linux-6b1a5ae9b5886832fb6d52064f6e3c6fcfefce57.tar.gz linux-6b1a5ae9b5886832fb6d52064f6e3c6fcfefce57.tar.bz2 linux-6b1a5ae9b5886832fb6d52064f6e3c6fcfefce57.zip |
convert vfs_dedupe_file_range().
fdput() is followed by checking fatal_signal_pending() (and aborting
the loop in such case). fdput() is transposable with that check.
Yes, it'll probably end up with slightly fatter code (call after the
check has returned false + call on the almost never taken out-of-line path
instead of one call before the check), but it's not worth bothering with
explicit extra scope there (or dragging the check into the loop condition,
for that matter).
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions