lkml.org 
[lkml]   [2021]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.12 043/700] btrfs: zoned: print message when zone sanity check type fails
    Date
    From: Naohiro Aota <naohiro.aota@wdc.com>

    commit 47cdfb5e1dd60422ec2cbc53b667f73ff9a411dc upstream.

    This extends patch 784daf2b9628 ("btrfs: zoned: sanity check zone
    type"), the message was supposed to be there but was lost during merge.
    We want to make the error noticeable so add it.

    Fixes: 784daf2b9628 ("btrfs: zoned: sanity check zone type")
    CC: stable@vger.kernel.org # 5.12+
    Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
    Reviewed-by: David Sterba <dsterba@suse.com>
    Signed-off-by: David Sterba <dsterba@suse.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    fs/btrfs/zoned.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/fs/btrfs/zoned.c
    +++ b/fs/btrfs/zoned.c
    @@ -1140,6 +1140,10 @@ int btrfs_load_block_group_zone_info(str
    }

    if (zone.type == BLK_ZONE_TYPE_CONVENTIONAL) {
    + btrfs_err_in_rcu(fs_info,
    + "zoned: unexpected conventional zone %llu on device %s (devid %llu)",
    + zone.start << SECTOR_SHIFT,
    + rcu_str_deref(device->name), device->devid);
    ret = -EIO;
    goto out;
    }

    \
     
     \ /
      Last update: 2021-07-12 09:21    [W:3.102 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site