summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2008-01-28 18:24:35 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2008-03-31 11:39:57 +0200
commit7eabb77e65c559d9c284da232b9ba5354898028a (patch)
treeb5df9c7ca0317abde3b76e56dc8f6c0050d9558e /fs/gfs2/bmap.c
parent[GFS2] Only do lo_incore_commit once (diff)
downloadlinux-7eabb77e65c559d9c284da232b9ba5354898028a.tar.xz
linux-7eabb77e65c559d9c284da232b9ba5354898028a.zip
[GFS2] Misc fixups
This patch contains two small fixups that didn't fit elsewhere. They are: (1) get rid of temp variable in find_metapath. (2) Remove vestigial "ret" variable from gfs2_writepage_common. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index e8e48b690cef..e84e3845a394 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -305,11 +305,10 @@ static void find_metapath(struct gfs2_inode *ip, u64 block,
struct metapath *mp)
{
struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
- u64 b = block;
unsigned int i;
for (i = ip->i_height; i--;)
- mp->mp_list[i] = do_div(b, sdp->sd_inptrs);
+ mp->mp_list[i] = do_div(block, sdp->sd_inptrs);
}