aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorGravatar Grzegorz Blach <grzegorz@blach.pl>2018-11-06 15:06:45 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-08 21:07:40 +0100
commit25076c94c0bfbd02790ba2486db5ee558016a1e1 (patch)
treef2155412f643fe26a6a3fba709f785ba05118b46 /fs
parentc3159a2d14420f323d1fb309ba4be91d233f7735 (diff)
downloadbuildroot-25076c94c0bfbd02790ba2486db5ee558016a1e1.tar.gz
buildroot-25076c94c0bfbd02790ba2486db5ee558016a1e1.tar.bz2
fs/f2fs: add option to define list of hot file extensions
Signed-off-by: Grzegorz Blach <grzegorz@blach.pl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/Config.in7
-rw-r--r--fs/f2fs/f2fs.mk2
2 files changed, 9 insertions, 0 deletions
diff --git a/fs/f2fs/Config.in b/fs/f2fs/Config.in
index 57473fdc43..20d70fbfa5 100644
--- a/fs/f2fs/Config.in
+++ b/fs/f2fs/Config.in
@@ -26,6 +26,13 @@ config BR2_TARGET_ROOTFS_F2FS_COLD_FILES
of multimedia file extensions such as jpg, gif, mpeg, mkv,
and so on.
+config BR2_TARGET_ROOTFS_F2FS_HOT_FILES
+ string "extension list for hot files"
+ help
+ Specify a comma separated file extension list in order f2fs
+ to treat them as hot files. The default list includes only
+ a db extension.
+
config BR2_TARGET_ROOTFS_F2FS_OVERPROVISION
int "overprovision ratio"
default 0
diff --git a/fs/f2fs/f2fs.mk b/fs/f2fs/f2fs.mk
index 63e3cdae7b..d4b8310ba3 100644
--- a/fs/f2fs/f2fs.mk
+++ b/fs/f2fs/f2fs.mk
@@ -14,6 +14,7 @@ endif
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)
@@ -32,6 +33,7 @@ F2FS_OPTS = \
-l "$(F2FS_LABEL)" \
-t $(F2FS_DISCARD) \
$(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)")