diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-12 11:36:56 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-11-19 20:05:48 -0500 |
commit | 8707df38478c8e0958b706f0ea1cdf99d00a9469 (patch) | |
tree | 5bc882fda214b4020f65f1df217e7fae40c10145 /fs/nilfs2/the_nilfs.c | |
parent | 79739565e15f2adbc482207a0800fc127c84d1a0 (diff) |
nilfs2: separate read method of meta data files on super root block
Will displace nilfs_mdt_read_inode_direct function with an individual
read method: nilfs_dat_read, nilfs_sufile_read, nilfs_cpfile_read.
This provides the opportunity to initialize local variables of each
metadata file after reading the inode.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/the_nilfs.c')
-rw-r--r-- | fs/nilfs2/the_nilfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nilfs2/the_nilfs.c b/fs/nilfs2/the_nilfs.c index d4a731fd4e32..bc7760c2a8f2 100644 --- a/fs/nilfs2/the_nilfs.c +++ b/fs/nilfs2/the_nilfs.c | |||
@@ -204,18 +204,18 @@ static int nilfs_load_super_root(struct the_nilfs *nilfs, | |||
204 | 204 | ||
205 | nilfs_mdt_set_shadow(nilfs->ns_dat, nilfs->ns_gc_dat); | 205 | nilfs_mdt_set_shadow(nilfs->ns_dat, nilfs->ns_gc_dat); |
206 | 206 | ||
207 | err = nilfs_mdt_read_inode_direct( | 207 | err = nilfs_dat_read(nilfs->ns_dat, (void *)bh_sr->b_data + |
208 | nilfs->ns_dat, bh_sr, NILFS_SR_DAT_OFFSET(inode_size)); | 208 | NILFS_SR_DAT_OFFSET(inode_size)); |
209 | if (unlikely(err)) | 209 | if (unlikely(err)) |
210 | goto failed_sufile; | 210 | goto failed_sufile; |
211 | 211 | ||
212 | err = nilfs_mdt_read_inode_direct( | 212 | err = nilfs_cpfile_read(nilfs->ns_cpfile, (void *)bh_sr->b_data + |
213 | nilfs->ns_cpfile, bh_sr, NILFS_SR_CPFILE_OFFSET(inode_size)); | 213 | NILFS_SR_CPFILE_OFFSET(inode_size)); |
214 | if (unlikely(err)) | 214 | if (unlikely(err)) |
215 | goto failed_sufile; | 215 | goto failed_sufile; |
216 | 216 | ||
217 | err = nilfs_mdt_read_inode_direct( | 217 | err = nilfs_sufile_read(nilfs->ns_sufile, (void *)bh_sr->b_data + |
218 | nilfs->ns_sufile, bh_sr, NILFS_SR_SUFILE_OFFSET(inode_size)); | 218 | NILFS_SR_SUFILE_OFFSET(inode_size)); |
219 | if (unlikely(err)) | 219 | if (unlikely(err)) |
220 | goto failed_sufile; | 220 | goto failed_sufile; |
221 | 221 | ||