From 3946f74b00f96eb0e178f73a25d50d75c8a03e9e Mon Sep 17 00:00:00 2001 From: Grzegorz Blach Date: Tue, 6 Nov 2018 15:06:46 +0100 Subject: [PATCH] fs/f2fs: simplify overprovision option handling Setting overprovision to 0 and omitting this option has exactly the same effect. Signed-off-by: Grzegorz Blach Signed-off-by: Thomas Petazzoni --- 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 -- 2.30.2