f2fs: add an sysfs entry to control the directory level
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 27 Feb 2014 11:09:05 +0000 (20:09 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 27 Feb 2014 11:31:15 +0000 (20:31 +0900)
commitab9fa662e4867455f44f4de96d29a7f09cf292c6
treeefa4cc308d41d83c0bd527df11bda8ca48e5eca8
parent3843154598a00408f4214a68bd536fdf27b1df10
f2fs: add an sysfs entry to control the directory level

This patch adds an sysfs entry to control dir_level used by the large directory.

The description of this entry is:

 dir_level                    This parameter controls the directory level to
      support large directory. If a directory has a
      number of files, it can reduce the file lookup
      latency by increasing this dir_level value.
      Otherwise, it needs to decrease this value to
      reduce the space overhead. The default value is 0.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Documentation/filesystems/f2fs.txt
fs/f2fs/f2fs.h
fs/f2fs/super.c