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>
This commit is contained in:
parent
c3159a2d14
commit
25076c94c0
@ -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
|
||||
|
@ -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)")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user