aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_address.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-04 14:59:35 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-04 14:59:35 -0400
commit0bd5996a00346fee772cbdebc5666fd4e514089b (patch)
tree1ddcbd49888cb4eec7aa3f96693193c0fd1979a5 /fs/gfs2/ops_address.c
parentdd538c832aaf8e35c46c98a825fa9dacee3cf226 (diff)
downloadlinux-0bd5996a00346fee772cbdebc5666fd4e514089b.tar.gz
[GFS2] Style changes in ops_address.c
As per the remainder of Jan Engelhardt's fourth email comments, remove an cast thats not required. Also tidy up the "limit" code in stuck_releasepage(). Cc: Jan Engelhardt <jengelh@linux01.gwdg.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_address.c')
-rw-r--r--fs/gfs2/ops_address.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index 96988ccf20874..d44d42fb4163b 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -517,7 +517,7 @@ static int gfs2_commit_write(struct file *file, struct page *page,
kaddr = kmap_atomic(page, KM_USER0);
memcpy(dibh->b_data + sizeof(struct gfs2_dinode) + from,
- (char *)kaddr + from, to - from);
+ kaddr + from, to - from);
kunmap_atomic(page, KM_USER0);
SetPageUptodate(page);
@@ -704,8 +704,9 @@ static void stuck_releasepage(struct buffer_head *bh)
struct gfs2_glock *gl;
static unsigned limit = 0;
- if (limit++ > 3)
+ if (limit > 3)
return;
+ limit++;
fs_warn(sdp, "stuck in gfs2_releasepage() %p\n", inode);
fs_warn(sdp, "blkno = %llu, bh->b_count = %d\n",