Commit e60837d
iomap: advance the iter directly on unshare range
Modify unshare range to advance the iter directly. Replace the local
pos and length calculations with direct advances and loop based on
iter state instead.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/r/20250207143253.314068-10-bfoster@redhat.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 1a1a3b5 commit e60837d
1 file changed
+11
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
| 1266 | + | |
| 1267 | + | |
1269 | 1268 | | |
1270 | 1269 | | |
1271 | | - | |
| 1270 | + | |
1272 | 1271 | | |
1273 | 1272 | | |
1274 | 1273 | | |
1275 | | - | |
1276 | 1274 | | |
1277 | | - | |
| 1275 | + | |
1278 | 1276 | | |
1279 | 1277 | | |
| 1278 | + | |
1280 | 1279 | | |
1281 | 1280 | | |
1282 | 1281 | | |
| |||
1294 | 1293 | | |
1295 | 1294 | | |
1296 | 1295 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | 1296 | | |
1302 | | - | |
1303 | 1297 | | |
1304 | | - | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1305 | 1304 | | |
1306 | 1305 | | |
1307 | 1306 | | |
| |||
0 commit comments