diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-08-14 13:29:28 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-09-14 05:27:16 -0400 |
commit | 0f3fe33b398abbecfcf9f08c16959d1a9a14a49a (patch) | |
tree | a60a3e8a3b90b173a58a2ba9d86e1363598bd279 /fs/nilfs2/mdt.c | |
parent | 2e0c2c73923fed27337039ddfd69985e6c4b91fe (diff) |
nilfs2: convert nilfs_bmap_lookup to an inline function
The nilfs_bmap_lookup() is now a wrapper function of
nilfs_bmap_lookup_at_level().
This moves the nilfs_bmap_lookup() to a header file converting it to
an inline function and gives an opportunity for optimization.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/mdt.c')
-rw-r--r-- | fs/nilfs2/mdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c index 9cb831899119..156bf6091a96 100644 --- a/fs/nilfs2/mdt.c +++ b/fs/nilfs2/mdt.c | |||
@@ -136,7 +136,7 @@ nilfs_mdt_submit_block(struct inode *inode, unsigned long blkoff, | |||
136 | int mode, struct buffer_head **out_bh) | 136 | int mode, struct buffer_head **out_bh) |
137 | { | 137 | { |
138 | struct buffer_head *bh; | 138 | struct buffer_head *bh; |
139 | unsigned long blknum = 0; | 139 | __u64 blknum = 0; |
140 | int ret = -ENOMEM; | 140 | int ret = -ENOMEM; |
141 | 141 | ||
142 | bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0); | 142 | bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0); |
@@ -166,7 +166,7 @@ nilfs_mdt_submit_block(struct inode *inode, unsigned long blkoff, | |||
166 | goto failed_bh; | 166 | goto failed_bh; |
167 | } | 167 | } |
168 | bh->b_bdev = NILFS_MDT(inode)->mi_nilfs->ns_bdev; | 168 | bh->b_bdev = NILFS_MDT(inode)->mi_nilfs->ns_bdev; |
169 | bh->b_blocknr = blknum; | 169 | bh->b_blocknr = (sector_t)blknum; |
170 | set_buffer_mapped(bh); | 170 | set_buffer_mapped(bh); |
171 | 171 | ||
172 | bh->b_end_io = end_buffer_read_sync; | 172 | bh->b_end_io = end_buffer_read_sync; |