diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2025-02-21 14:38:16 -0800 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-02-24 11:44:43 +0100 |
commit | 753aadebf2e307ec37ea992f1dd3b94291f9954f (patch) | |
tree | 5b0664e103947402ed47152427225eca005595dc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2014c95afecee3e76ca4a56956a936e23283f05b (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions