summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
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/f2fs.h
parentace52288edf0cb5e7a52b681f057f86224c49c27 (diff)
downloadlinux-292c196a3695e57980dc79dea3863462fa4831c4.tar.bz2
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/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 6abf26c31d01..ef68433a2363 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1101,6 +1101,8 @@ struct f2fs_sb_info {
block_t reserved_blocks; /* configurable reserved blocks */
block_t current_reserved_blocks; /* current reserved blocks */
+ unsigned int nquota_files; /* # of quota sysfile */
+
u32 s_next_generation; /* for NFS support */
/* # of pages, see count_type */