diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2014-01-20 18:37:04 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-01-22 18:41:07 +0900 |
commit | 9df27d982d58b9372bc476fb6b9bab861d617029 (patch) | |
tree | 3bd776a200082f1b24bfc98fd6c6478c653a4bd5 /fs/f2fs/f2fs.h | |
parent | e8dae6045882e32a067326f47b7ccd3aaf8814e2 (diff) | |
download | op-kernel-dev-9df27d982d58b9372bc476fb6b9bab861d617029.zip op-kernel-dev-9df27d982d58b9372bc476fb6b9bab861d617029.tar.gz |
f2fs: add help function META_MAPPING
Introduce help function META_MAPPING() to get the cache meta blocks'
address space.
Signed-off-by: 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 5ab3981..117e30f 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -533,6 +533,11 @@ static inline struct dirty_seglist_info *DIRTY_I(struct f2fs_sb_info *sbi) return (struct dirty_seglist_info *)(SM_I(sbi)->dirty_info); } +static inline struct address_space *META_MAPPING(struct f2fs_sb_info *sbi) +{ + return sbi->meta_inode->i_mapping; +} + static inline void F2FS_SET_SB_DIRT(struct f2fs_sb_info *sbi) { sbi->s_dirty = 1; |