]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: track the next file offset in struct btrfs_bio_ctrl
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Apr 2025 11:10:36 +0000 (13:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:46 +0000 (14:30 +0200)
commitf6b2d8b134b2413b7b3a937a4fe57c8b05fea62e
treea589496cba5fa3dda165657ae114b1ad16349001
parent8cad6fed82147d8fb7fdc96b4247404a214372cf
btrfs: track the next file offset in struct btrfs_bio_ctrl

The bio implementation is not something we should really mess around,
and we shouldn't recalculate the pos from the folio over and over.
Instead just track then end of the current bio in logical file offsets
in the btrfs_bio_ctrl, which is much simpler and easier to read.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c