]> www.infradead.org Git - users/hch/misc.git/commit
btrfs: fix wrong sizeof in btrfs_do_encoded_write()
authorMark Harmstone <maharmstone@fb.com>
Tue, 15 Oct 2024 11:37:29 +0000 (12:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:18 +0000 (14:34 +0100)
commitb1c5f6eda2d024c187d4d47f0310bc5a1cc8b1d3
treec421ef234ed2dbdcbb2e44fcf392b076d40c3361
parent4f285a7752071a925f3b3062b24220d01b8c0f8a
btrfs: fix wrong sizeof in btrfs_do_encoded_write()

btrfs_do_encoded_write() was converted to use folios in 400b172b8cdc,
but we're still allocating based on sizeof(struct page *) rather than
sizeof(struct folio *). There's no functional change.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Mark Harmstone <maharmstone@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c