]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: suppress reclaim error message on EAGAIN
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 9 Aug 2021 04:32:30 +0000 (13:32 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:11 +0000 (13:19 +0200)
commit315ebf46006a5701e6a9eac4cb754ca40ec689bc
tree11f09edc117964805a5facd639f2917f52c9528f
parentd2861c93a6a00f34ec74d0f977ac72b17bbdef1b
btrfs: zoned: suppress reclaim error message on EAGAIN

btrfs_relocate_chunk() can fail with -EAGAIN when e.g. send operations are
running. The message can fail btrfs/187 and it's unnecessary because we
anyway add it back to the reclaim list.

btrfs_reclaim_bgs_work()
`-> btrfs_relocate_chunk()
    `-> btrfs_relocate_block_group()
        `-> reloc_chunk_start()
            `-> if (fs_info->send_in_progress)
                `-> return -EAGAIN

CC: stable@vger.kernel.org # 5.13+
Fixes: 9d8d2570b3af ("btrfs: zoned: automatically reclaim zones")
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c