lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <842e3804-1fb6-4d37-85e9-8df3c2658716@wdc.com>
Date:   Wed, 13 Dec 2023 09:04:03 +0000
From:   Johannes Thumshirn <Johannes.Thumshirn@....com>
To:     "hch@...radead.org" <hch@...radead.org>
CC:     Chris Mason <clm@...com>, Josef Bacik <josef@...icpanda.com>,
        David Sterba <dsterba@...e.com>,
        "linux-btrfs@...r.kernel.org" <linux-btrfs@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 08/13] btrfs: factor out block mapping for RAID5/6

On 13.12.23 09:53, Christoph Hellwig wrote:
>> +static void map_blocks_for_raid56(struct btrfs_chunk_map *map,
>> +				  enum btrfs_map_op op,
>> +				  struct btrfs_io_geometry *io_geom,
>> +				  u64 logical, u64 *length)
>> +{
>> +	int data_stripes = nr_data_stripes(map);
>> +
>> +	if (op != BTRFS_MAP_READ || io_geom->mirror_num > 1) {
> 
> Any reason to not have separate read/write helpers here given that
> they don't really share anything?
> 

Nope, can do sure.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ