diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-11-26 03:08:57 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-01-06 08:42:20 +0100 |
commit | 0dbdc2ae9bba0a358816cc4a22e41a6ef16db8a2 (patch) | |
tree | 7ffa34ebdec3327322913de047f8964bd21e7e1a /fs/f2fs/inline.c | |
parent | f2fs: refactor f2fs_convert_inline_data (diff) | |
download | linux-0dbdc2ae9bba0a358816cc4a22e41a6ef16db8a2.tar.xz linux-0dbdc2ae9bba0a358816cc4a22e41a6ef16db8a2.zip |
f2fs: add the number of inline_data files to status info
This patch adds the number of inline_data files into the status information.
Note that the number is reset whenever the filesystem is newly mounted.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/inline.c')
-rw-r--r-- | fs/f2fs/inline.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index e8891aa3ab8c..3c9261cd215f 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -13,11 +13,6 @@ #include "f2fs.h" -inline int f2fs_has_inline_data(struct inode *inode) -{ - return is_inode_flag_set(F2FS_I(inode), FI_INLINE_DATA); -} - bool f2fs_may_inline(struct inode *inode) { struct f2fs_sb_info *sbi = F2FS_SB(inode->i_sb); @@ -113,6 +108,7 @@ static int __f2fs_convert_inline_data(struct inode *inode, struct page *page) zero_user_segment(ipage, INLINE_DATA_OFFSET, INLINE_DATA_OFFSET + MAX_INLINE_DATA); clear_inode_flag(F2FS_I(inode), FI_INLINE_DATA); + stat_dec_inline_inode(inode); sync_inode_page(&dn); f2fs_put_page(ipage, 1); @@ -165,6 +161,7 @@ int f2fs_write_inline_data(struct inode *inode, if (!f2fs_has_inline_data(inode)) { truncate_data_blocks_range(&dn, 1); set_inode_flag(F2FS_I(inode), FI_INLINE_DATA); + stat_inc_inline_inode(inode); } sync_inode_page(&dn); |