diff options
| -rw-r--r-- | fs/gfs2/bmap.c | 3 | ||||
| -rw-r--r-- | fs/gfs2/ops_address.c | 4 |
2 files changed, 2 insertions, 5 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, | |||
| 305 | struct metapath *mp) | 305 | struct metapath *mp) |
| 306 | { | 306 | { |
| 307 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); | 307 | struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); |
| 308 | u64 b = block; | ||
| 309 | unsigned int i; | 308 | unsigned int i; |
| 310 | 309 | ||
| 311 | for (i = ip->i_height; i--;) | 310 | for (i = ip->i_height; i--;) |
| 312 | mp->mp_list[i] = do_div(b, sdp->sd_inptrs); | 311 | mp->mp_list[i] = do_div(block, sdp->sd_inptrs); |
| 313 | 312 | ||
| 314 | } | 313 | } |
| 315 | 314 | ||
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index ac772b6d9dbb..7523999afc53 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. | 2 | * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. |
| 3 | * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. | 3 | * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. |
| 4 | * | 4 | * |
| 5 | * This copyrighted material is made available to anyone wishing to use, | 5 | * This copyrighted material is made available to anyone wishing to use, |
| 6 | * modify, copy, or redistribute it subject to the terms and conditions | 6 | * modify, copy, or redistribute it subject to the terms and conditions |
| @@ -104,11 +104,9 @@ static int gfs2_writepage_common(struct page *page, | |||
| 104 | loff_t i_size = i_size_read(inode); | 104 | loff_t i_size = i_size_read(inode); |
| 105 | pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; | 105 | pgoff_t end_index = i_size >> PAGE_CACHE_SHIFT; |
| 106 | unsigned offset; | 106 | unsigned offset; |
| 107 | int ret = -EIO; | ||
| 108 | 107 | ||
| 109 | if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) | 108 | if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) |
| 110 | goto out; | 109 | goto out; |
| 111 | ret = 0; | ||
| 112 | if (current->journal_info) | 110 | if (current->journal_info) |
| 113 | goto redirty; | 111 | goto redirty; |
| 114 | /* Is the page fully outside i_size? (truncate in progress) */ | 112 | /* Is the page fully outside i_size? (truncate in progress) */ |
