[Buildroot] [git commit] fs/f2fs: simplify overprovision option handling
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Thu Nov 8 20:17:49 UTC 2018
commit: https://git.buildroot.net/buildroot/commit/?id=3946f74b00f96eb0e178f73a25d50d75c8a03e9e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Setting overprovision to 0 and omitting this option has exactly
the same effect.
Signed-off-by: Grzegorz Blach <grzegorz at blach.pl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
fs/f2fs/f2fs.mk | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/fs/f2fs/f2fs.mk b/fs/f2fs/f2fs.mk
index d4b8310ba3..f35bb60ad0 100644
--- a/fs/f2fs/f2fs.mk
+++ b/fs/f2fs/f2fs.mk
@@ -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
More information about the buildroot
mailing list