• Damien Le Moal's avatar
    f2fs: Cache zoned block devices zone type · 178053e2
    Damien Le Moal authored
    With the zoned block device feature enabled, section discard
    need to do a zone reset for sections contained in sequential
    zones, and a regular discard (if supported) for sections
    stored in conventional zones. Avoid the need for a costly
    report zones to obtain a section zone type when discarding it
    by caching the types of the device zones in the super block
    information. This cache is initialized at mount time for mounts
    with the zoned block device feature enabled.
    Signed-off-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    178053e2
f2fs.h 75.2 KB