Commit ae074d0
loop: move updating lo_flags out of loop_set_status_from_info
While loop_configure simplify assigns the flags passed in by userspace,
loop_set_status only looks at the two changeable flags, and currently
has to do a complicate dance to implement that.
Move assign lo->lo_flags out of loop_set_status_from_info into the
callers and thus drastically simplify the lo_flags handling in
loop_set_status.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250110073750.1582447-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent b03732a commit ae074d0
1 file changed
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
974 | | - | |
975 | 974 | | |
976 | 975 | | |
977 | 976 | | |
| |||
1069 | 1068 | | |
1070 | 1069 | | |
1071 | 1070 | | |
| 1071 | + | |
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
| |||
1258 | 1258 | | |
1259 | 1259 | | |
1260 | 1260 | | |
1261 | | - | |
1262 | 1261 | | |
1263 | 1262 | | |
1264 | 1263 | | |
| |||
1280 | 1279 | | |
1281 | 1280 | | |
1282 | 1281 | | |
1283 | | - | |
1284 | | - | |
1285 | 1282 | | |
1286 | 1283 | | |
1287 | 1284 | | |
1288 | 1285 | | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1295 | 1292 | | |
1296 | 1293 | | |
1297 | 1294 | | |
| |||
1304 | 1301 | | |
1305 | 1302 | | |
1306 | 1303 | | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
| 1304 | + | |
1310 | 1305 | | |
1311 | | - | |
1312 | | - | |
1313 | 1306 | | |
1314 | 1307 | | |
1315 | 1308 | | |
| |||
0 commit comments