summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-04-28 17:59:43 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-07 10:21:57 +0900
commit817202d937e6cca7e60f42e6495aaa51d70d9d7e (patch)
tree24ea4565ddf464250fa39a0e4735d01b14ebf6d6 /fs/f2fs/f2fs.h
parent5c1f9927ec1a4753e845193bde99ac3b03b08818 (diff)
downloadlinux-817202d937e6cca7e60f42e6495aaa51d70d9d7e.tar.gz
linux-817202d937e6cca7e60f42e6495aaa51d70d9d7e.tar.bz2
linux-817202d937e6cca7e60f42e6495aaa51d70d9d7e.zip
f2fs: readahead multi pages of directory for performance
We have no so such readahead mechanism in ->iterate() path as the one in ->read() path, it cause low performance when we read large directory. This patch add readahead in f2fs_readdir() for better performance. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index e77be7cb1e60..2b67679f88b6 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -182,6 +182,8 @@ enum {
#define F2FS_LINK_MAX 32000 /* maximum link count per file */
+#define MAX_DIR_RA_PAGES 4 /* maximum ra pages of dir */
+
/* for in-memory extent cache entry */
#define F2FS_MIN_EXTENT_LEN 16 /* minimum extent length */