Commit 620faea
loop: factor out a loop_assign_backing_file helper
[ Upstream commit d278164 ]
Split the code for setting up a backing file into a helper in preparation
of adding more code to this path.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20250131120120.1315125-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Stable-dep-of: f5c84ef ("loop: Add sanity check for read/write_iter")
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit a781ffe410d83fa8092d30d53f583d0ce8732a7b)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>1 parent fb3eb5f commit 620faea
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
496 | 504 | | |
497 | 505 | | |
498 | 506 | | |
| |||
545 | 553 | | |
546 | 554 | | |
547 | 555 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
| 556 | + | |
552 | 557 | | |
553 | 558 | | |
554 | 559 | | |
| |||
940 | 945 | | |
941 | 946 | | |
942 | 947 | | |
943 | | - | |
944 | 948 | | |
945 | 949 | | |
946 | 950 | | |
| |||
976 | 980 | | |
977 | 981 | | |
978 | 982 | | |
979 | | - | |
980 | | - | |
981 | 983 | | |
982 | 984 | | |
983 | 985 | | |
| |||
1009 | 1011 | | |
1010 | 1012 | | |
1011 | 1013 | | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
0 commit comments