fs/f2fs: simplify overprovision option handling
authorGrzegorz Blach <grzegorz@blach.pl>
Tue, 6 Nov 2018 14:06:46 +0000 (15:06 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 8 Nov 2018 20:17:49 +0000 (21:17 +0100)
Setting overprovision to 0 and omitting this option has exactly
the same effect.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
fs/f2fs/f2fs.mk

index d4b8310ba39f70be7d0e033bdd0a900850193491..f35bb60ad00d2b8d5f01c68b1358c217baecd233 100644 (file)
@@ -16,10 +16,6 @@ F2FS_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_F2FS_LABEL))
 F2FS_COLD_FILES = $(call qstrip,$(BR2_TARGET_ROOTFS_F2FS_COLD_FILES))
 F2FS_HOT_FILES = $(call qstrip,$(BR2_TARGET_ROOTFS_F2FS_HOT_FILES))
 
-ifneq ($(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION),0)
-F2FS_OVERPROVISION = $(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION)
-endif
-
 ifeq ($(BR2_TARGET_ROOTFS_F2FS_DISCARD),y)
 F2FS_DISCARD = 1
 else
@@ -32,9 +28,9 @@ F2FS_OPTS = \
        -f \
        -l "$(F2FS_LABEL)" \
        -t $(F2FS_DISCARD) \
+       -o $(BR2_TARGET_ROOTFS_F2FS_OVERPROVISION) \
        $(if $(F2FS_COLD_FILES),-e "$(F2FS_COLD_FILES)") \
        $(if $(F2FS_HOT_FILES),-E "$(F2FS_HOT_FILES)") \
-       $(if $(F2FS_OVERPROVISION),-o $(F2FS_OVERPROVISION)) \
        $(if $(F2FS_FEATURES),-O "$(F2FS_FEATURES)")
 
 ROOTFS_F2FS_DEPENDENCIES = host-f2fs-tools