Commit a781ffe4 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman
Browse files

loop: factor out a loop_assign_backing_file helper



[ Upstream commit d2781648 ]

Split the code for setting up a backing file into a helper in preparation
of adding more code to this path.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20250131120120.1315125-2-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Stable-dep-of: f5c84eff ("loop: Add sanity check for read/write_iter")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5e1470b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment