]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
loop: remove extra variable in lo_req_flush
authorChaitanya Kulkarni <kch@nvidia.com>
Tue, 15 Feb 2022 21:33:09 +0000 (13:33 -0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 27 Feb 2022 21:49:49 +0000 (14:49 -0700)
commit9c64e38cc639537ad9b542635af1733e8cb5e19b
tree27c1829addb5dca70a03fcbddbf43c41aeb72e80
parent0aab29b85478b994422f1551ce36e5640b09db2b
loop: remove extra variable in lo_req_flush

The local variable file is used to pass it to the vfs_fsync(). We can
get away with using lo->lo_backing_file instead of storing in a local
variable which is not used anywhere else.

No functional change in this patch.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Link: https://lore.kernel.org/r/20220215213310.7264-4-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c