Thread (30 messages) 30 messages, 3 authors, 2020-08-25

Re: [PATCH v5 6/9] btrfs: support different disk extent size for delalloc

From: Josef Bacik <josef@toxicpanda.com>
Date: 2020-08-24 19:26:13
Also in: linux-btrfs, linux-fsdevel

On 8/21/20 3:38 AM, 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. No functional change.

Reviewed-by: Nikolay Borisov <redacted>
Signed-off-by: Omar Sandoval <redacted>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help