diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-11-16 03:59:14 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-01-02 22:27:26 -0500 |
commit | 292c196a3695e57980dc79dea3863462fa4831c4 (patch) | |
tree | c5ea753a4ba015482edf81e77854292756d7fde0 /fs/f2fs/debug.c | |
parent | ace52288edf0cb5e7a52b681f057f86224c49c27 (diff) |
f2fs: reserve nid resource for quota sysfile
During mkfs, quota sysfiles have already occupied nid resource,
it needs to adjust remaining available nid count in kernel side.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
-rw-r--r-- | fs/f2fs/debug.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index ecada8425268..4d929627e210 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c | |||
@@ -49,14 +49,7 @@ static void update_general_status(struct f2fs_sb_info *sbi) | |||
49 | si->ndirty_imeta = get_pages(sbi, F2FS_DIRTY_IMETA); | 49 | si->ndirty_imeta = get_pages(sbi, F2FS_DIRTY_IMETA); |
50 | si->ndirty_dirs = sbi->ndirty_inode[DIR_INODE]; | 50 | si->ndirty_dirs = sbi->ndirty_inode[DIR_INODE]; |
51 | si->ndirty_files = sbi->ndirty_inode[FILE_INODE]; | 51 | si->ndirty_files = sbi->ndirty_inode[FILE_INODE]; |
52 | 52 | si->nquota_files = sbi->nquota_files; | |
53 | si->nquota_files = 0; | ||
54 | if (f2fs_sb_has_quota_ino(sbi->sb)) { | ||
55 | for (i = 0; i < MAXQUOTAS; i++) { | ||
56 | if (f2fs_qf_ino(sbi->sb, i)) | ||
57 | si->nquota_files++; | ||
58 | } | ||
59 | } | ||
60 | si->ndirty_all = sbi->ndirty_inode[DIRTY_META]; | 53 | si->ndirty_all = sbi->ndirty_inode[DIRTY_META]; |
61 | si->inmem_pages = get_pages(sbi, F2FS_INMEM_PAGES); | 54 | si->inmem_pages = get_pages(sbi, F2FS_INMEM_PAGES); |
62 | si->aw_cnt = atomic_read(&sbi->aw_cnt); | 55 | si->aw_cnt = atomic_read(&sbi->aw_cnt); |