convert vfs_dedupe_file_range().
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 23 Jul 2024 05:28:31 +0000 (01:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Nov 2024 06:28:07 +0000 (01:28 -0500)
commit6b1a5ae9b5886832fb6d52064f6e3c6fcfefce57
tree4ae6dcf443d6f44a007de4a9f7b1f2b70f331562
parent9bd812744db2e1d27712ab1053527bb54e178e4c
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>
fs/remap_range.c