diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-01-21 04:51:16 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-01-22 04:41:08 -0500 |
commit | 4ef51a8fcc7c54ca3ad948a8b4310b3bd5490c72 (patch) | |
tree | 7da13ec35c96c78a7f9ef39840ede60e350e7c62 /fs/f2fs/f2fs.h | |
parent | 63f5384c9a7df95a0e0eb6745f3038c703bdf4c3 (diff) |
f2fs: introduce NODE_MAPPING for code consistency
This patch adds NODE_MAPPING which is similar as META_MAPPING introduced by
Gu Zheng.
Cc: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 117e30f6b88c..af51a0bd2dee 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -538,6 +538,11 @@ static inline struct address_space *META_MAPPING(struct f2fs_sb_info *sbi) | |||
538 | return sbi->meta_inode->i_mapping; | 538 | return sbi->meta_inode->i_mapping; |
539 | } | 539 | } |
540 | 540 | ||
541 | static inline struct address_space *NODE_MAPPING(struct f2fs_sb_info *sbi) | ||
542 | { | ||
543 | return sbi->node_inode->i_mapping; | ||
544 | } | ||
545 | |||
541 | static inline void F2FS_SET_SB_DIRT(struct f2fs_sb_info *sbi) | 546 | static inline void F2FS_SET_SB_DIRT(struct f2fs_sb_info *sbi) |
542 | { | 547 | { |
543 | sbi->s_dirty = 1; | 548 | sbi->s_dirty = 1; |