Re: [RFC PATCH v3 09/12] btrfs: support different disk extent size for delalloc

From
Nikolay Borisov <hidden>
Date
2019-11-27 10:33:27
Also in
linux-btrfs, linux-fsdevel
Reply to
Omar Sandoval, 2019-11-20

On 20.11.19 г. 20:24 ч., Omar Sandoval wrote:
From: Omar Sandoval <redacted>

Currently, we always reserve the same extent size in the file and extent
size on disk for delalloc because the former is the worst case for the
latter. For RWF_ENCODED writes, we know the exact size of the extent on
disk, which may be less than or greater than (for bookends) the size in
the file. Add a disk_num_bytes parameter to
btrfs_delalloc_reserve_metadata() so that we can reserve the correct
amount of csum bytes. Additionally, make
btrfs_free_reserve_data_space_noquota() take a number of bytes instead
of a range, as it refers to the extent size on disk, not in the file. No
functional change.

Signed-off-by: Omar Sandoval <redacted>
Reviewed-by: Nikolay Borisov <redacted>
Thread (26 messages) 26 messages, 2 authors, last reply 2019-12-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help