Re: [RESEND PATCH 1/2] btrfs: Read stripe len directly in btrfs_rmap_block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 03, 2020 at 04:40:34PM +0300, Nikolay Borisov wrote:
> extent_map::orig_block_len contains the size of a physical stripe when
> it's used to describe block groups (calculated in read_one_chunk via
> calc_stripe_length or calculated in decide_stripe_size and then assigned to
> extent_map::orig_block_len in create_chunk). Exploit this fact to get the
> size directly rather than opencoding the calculations. No functional changes.
> 
> Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>
> ---
> 
> Hello David,
> 
> You had some reservations for this patch but now I've expanded the changelog to
> explain why it's safe to do so.

I've applied the patches to misc-next, if something goes wrong we'll
now. The patches look correct as long as I followed the changelog, but
it's not code I know by heart so if there's something missing I'm
relying on tests to catch it.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux