diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-03-08 21:05:07 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-03-08 21:05:07 -0500 |
commit | 574e6c3145c5754141361c695b58736c294a8ae1 (patch) | |
tree | 42fdaf8a107b8a42a1ea239675ac9461e97d0990 /fs/nilfs2/the_nilfs.h | |
parent | 3b2ce58b0f3c1633750529713be0e467282abd78 (diff) |
nilfs2: move parameters on nilfs_sb_info into nilfs object
This moves four parameter variables on nilfs_sb_info s_resuid,
s_resgid, s_interval and s_watermark to the nilfs object.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/the_nilfs.h')
-rw-r--r-- | fs/nilfs2/the_nilfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/nilfs2/the_nilfs.h b/fs/nilfs2/the_nilfs.h index 438278041d80..4a9bf3913c9c 100644 --- a/fs/nilfs2/the_nilfs.h +++ b/fs/nilfs2/the_nilfs.h | |||
@@ -73,6 +73,10 @@ enum { | |||
73 | * @ns_cptree_lock: lock protecting @ns_cptree | 73 | * @ns_cptree_lock: lock protecting @ns_cptree |
74 | * @ns_gc_inodes: dummy inodes to keep live blocks | 74 | * @ns_gc_inodes: dummy inodes to keep live blocks |
75 | * @ns_mount_opt: mount options | 75 | * @ns_mount_opt: mount options |
76 | * @ns_resuid: uid for reserved blocks | ||
77 | * @ns_resgid: gid for reserved blocks | ||
78 | * @ns_interval: checkpoint creation interval | ||
79 | * @ns_watermark: watermark for the number of dirty buffers | ||
76 | * @ns_blocksize_bits: bit length of block size | 80 | * @ns_blocksize_bits: bit length of block size |
77 | * @ns_blocksize: block size | 81 | * @ns_blocksize: block size |
78 | * @ns_nsegments: number of segments in filesystem | 82 | * @ns_nsegments: number of segments in filesystem |
@@ -152,6 +156,11 @@ struct the_nilfs { | |||
152 | /* Mount options */ | 156 | /* Mount options */ |
153 | unsigned long ns_mount_opt; | 157 | unsigned long ns_mount_opt; |
154 | 158 | ||
159 | uid_t ns_resuid; | ||
160 | gid_t ns_resgid; | ||
161 | unsigned long ns_interval; | ||
162 | unsigned long ns_watermark; | ||
163 | |||
155 | /* Disk layout information (static) */ | 164 | /* Disk layout information (static) */ |
156 | unsigned int ns_blocksize_bits; | 165 | unsigned int ns_blocksize_bits; |
157 | unsigned int ns_blocksize; | 166 | unsigned int ns_blocksize; |