Commit 753aade
fs/buffer: simplify block_read_full_folio() with bh_offset()
When we read over all buffers in a folio we currently use the
buffer index on the folio and blocksize to get the offset. Simplify
this with bh_offset(). This simplifies the loop while making no
functional changes.
Suggested-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20250221223823.1680616-2-mcgrof@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 2014c95 commit 753aade
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2381 | 2381 | | |
2382 | 2382 | | |
2383 | 2383 | | |
2384 | | - | |
2385 | 2384 | | |
2386 | 2385 | | |
2387 | 2386 | | |
| |||
2398 | 2397 | | |
2399 | 2398 | | |
2400 | 2399 | | |
2401 | | - | |
| 2400 | + | |
2402 | 2401 | | |
2403 | 2402 | | |
2404 | 2403 | | |
| |||
2412 | 2411 | | |
2413 | 2412 | | |
2414 | 2413 | | |
2415 | | - | |
| 2414 | + | |
2416 | 2415 | | |
2417 | 2416 | | |
2418 | 2417 | | |
| |||
0 commit comments