lkml.org 
[lkml]   [2019]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 02/19] btrfs: Get zone information of zoned block devices
    On Fri, Jun 07, 2019 at 10:10:08PM +0900, Naohiro Aota wrote:
    > If a zoned block device is found, get its zone information (number of zones
    > and zone size) using the new helper function btrfs_get_dev_zonetypes(). To
    > avoid costly run-time zone report commands to test the device zones type
    > during block allocation, attach the seqzones bitmap to the device structure
    > to indicate if a zone is sequential or accept random writes.
    >
    > This patch also introduces the helper function btrfs_dev_is_sequential() to
    > test if the zone storing a block is a sequential write required zone.
    >
    > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
    > Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
    > ---
    > fs/btrfs/volumes.c | 143 +++++++++++++++++++++++++++++++++++++++++++++
    > fs/btrfs/volumes.h | 33 +++++++++++
    > 2 files changed, 176 insertions(+)
    >

    We have enough problems with giant files already, please just add a separate
    hmzoned.c or whatever and put all the zone specific code in there. That'll save
    me time when I go and break a bunch of stuff out. Thanks,

    Josef

    \
     
     \ /
      Last update: 2019-06-13 17:10    [W:4.877 / U:0.292 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site