summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/debug.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-11-16 16:59:14 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-02 19:27:26 -0800
commit292c196a3695e57980dc79dea3863462fa4831c4 (patch)
treec5ea753a4ba015482edf81e77854292756d7fde0 /fs/f2fs/debug.c
parentace52288edf0cb5e7a52b681f057f86224c49c27 (diff)
downloadtalos-obmc-linux-292c196a3695e57980dc79dea3863462fa4831c4.tar.gz
talos-obmc-linux-292c196a3695e57980dc79dea3863462fa4831c4.zip
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.c9
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)
si->ndirty_imeta = get_pages(sbi, F2FS_DIRTY_IMETA);
si->ndirty_dirs = sbi->ndirty_inode[DIR_INODE];
si->ndirty_files = sbi->ndirty_inode[FILE_INODE];
-
- si->nquota_files = 0;
- if (f2fs_sb_has_quota_ino(sbi->sb)) {
- for (i = 0; i < MAXQUOTAS; i++) {
- if (f2fs_qf_ino(sbi->sb, i))
- si->nquota_files++;
- }
- }
+ si->nquota_files = sbi->nquota_files;
si->ndirty_all = sbi->ndirty_inode[DIRTY_META];
si->inmem_pages = get_pages(sbi, F2FS_INMEM_PAGES);
si->aw_cnt = atomic_read(&sbi->aw_cnt);
OpenPOWER on IntegriCloud