]> git.karo-electronics.de Git - karo-tx-linux.git/commit
f2fs: Cache zoned block devices zone type
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 28 Oct 2016 08:45:05 +0000 (17:45 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 23 Nov 2016 20:11:22 +0000 (12:11 -0800)
commit178053e2f1f9ccdb61ff6c2bd8644b53fc98e72e
tree55cd63cf12864ca6da6f47d68fd26c1b42c2d6a4
parent3adc57e97792e4ac9f228bde802829e2e9840afe
f2fs: Cache zoned block devices zone type

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: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/super.c