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/sufile.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/sufile.c')
-rw-r--r-- | fs/nilfs2/sufile.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nilfs2/sufile.c b/fs/nilfs2/sufile.c index 6fb707ab7e2c..b344f27238f0 100644 --- a/fs/nilfs2/sufile.c +++ b/fs/nilfs2/sufile.c | |||
@@ -659,6 +659,16 @@ ssize_t nilfs_sufile_get_suinfo(struct inode *sufile, __u64 segnum, void *buf, | |||
659 | } | 659 | } |
660 | 660 | ||
661 | /** | 661 | /** |
662 | * nilfs_sufile_read - read sufile inode | ||
663 | * @sufile: sufile inode | ||
664 | * @raw_inode: on-disk sufile inode | ||
665 | */ | ||
666 | int nilfs_sufile_read(struct inode *sufile, struct nilfs_inode *raw_inode) | ||
667 | { | ||
668 | return nilfs_read_inode_common(sufile, raw_inode); | ||
669 | } | ||
670 | |||
671 | /** | ||
662 | * nilfs_sufile_new - create sufile | 672 | * nilfs_sufile_new - create sufile |
663 | * @nilfs: nilfs object | 673 | * @nilfs: nilfs object |
664 | * @susize: size of a segment usage entry | 674 | * @susize: size of a segment usage entry |