diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-06-10 09:17:01 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:43:51 +0900 |
commit | b3e6e9cfd627a3fa07a62daed48b58fac1b07c24 (patch) | |
tree | 764d81a9562c5e7a3ae36a0484d150fe17924b2a /fs/f2fs/f2fs.h | |
parent | 3154d7c88c5935d2bb0ed49f85c5ea962722ed04 (diff) | |
download | linux-3.10-b3e6e9cfd627a3fa07a62daed48b58fac1b07c24.tar.gz linux-3.10-b3e6e9cfd627a3fa07a62daed48b58fac1b07c24.tar.bz2 linux-3.10-b3e6e9cfd627a3fa07a62daed48b58fac1b07c24.zip |
f2fs: avoid freqeunt write_inode calls
If update_inode is called, we don't need to do write_inode.
So, let's use a *dirty* flag for each inode.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 27edf59ac12..a05aa65cfc2 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -856,6 +856,7 @@ static inline int f2fs_clear_bit(unsigned int nr, char *addr) /* used for f2fs_inode_info->flags */ enum { FI_NEW_INODE, /* indicate newly allocated inode */ + FI_DIRTY_INODE, /* indicate inode is dirty or not */ FI_INC_LINK, /* need to increment i_nlink */ FI_ACL_MODE, /* indicate acl mode */ FI_NO_ALLOC, /* should not allocate any blocks */ |