]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
loop: set LO_FLAGS_DIRECT_IO in loop_assign_backing_file
authorChristoph Hellwig <hch@lst.de>
Fri, 31 Jan 2025 12:00:39 +0000 (13:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 Feb 2025 23:17:56 +0000 (16:17 -0700)
commit984c2ab4b87c0db7c53c3b6a42be95f79f2aae89
treeb84d8d116b394f9906da7870376d402bac6ea563
parentd278164832618bf2775c6a89e6434e2633de1eed
loop: set LO_FLAGS_DIRECT_IO in loop_assign_backing_file

Assigning LO_FLAGS_DIRECT_IO from the O_DIRECT flag is related to
assigning a new backing file.  Move the assignment in preparation
of using the flag more and earlier.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20250131120120.1315125-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c