f2fs: remove costly dirty_dir_inode operations
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 15 Apr 2014 02:19:28 +0000 (11:19 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 7 May 2014 01:21:54 +0000 (10:21 +0900)
commited57c27f736f6d8a51e442610c800ee0c3d83977
treef1d453fae0ba5b9d5ca938fb0d57aedd762a5c58
parent15c6e3aae68d6167cba063387a59968f811c8268
f2fs: remove costly dirty_dir_inode operations

This patch removes list opeations in handling dirty dir inodes.
Previously, F2FS traverses whole the list of dirty dir inodes to check whether
there is an existing inode or not, resulting in heavy CPU overheads.

So this patch removes such the traverse operations by adding FI_DIRTY_DIR to
indicate the inode lies on the list or not.
Through this simple flag, we can remove redundant operations gracefully.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/recovery.c
This page took 0.027125 seconds and 5 git commands to generate.