]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: change btrfs_encoded_read() so that reading of extent is done by caller
authorMark Harmstone <maharmstone@fb.com>
Tue, 22 Oct 2024 14:50:17 +0000 (15:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:21 +0000 (14:34 +0100)
commit26efd44796c6dd7a64f039a0dda6d558eac97a3e
tree12b0028c44bcd2fcaeeff96eb9ae4753aa45ecf4
parent4bca7412b8325508b47768678acf6249ad179763
btrfs: change btrfs_encoded_read() so that reading of extent is done by caller

Change the behaviour of btrfs_encoded_read() so that if it needs to read
an extent from disk, it leaves the extent and inode locked and returns
-EIOCBQUEUED. The caller is then responsible for doing the I/O via
btrfs_encoded_read_regular() and unlocking the extent and inode.

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/btrfs_inode.h
fs/btrfs/inode.c
fs/btrfs/ioctl.c