GFS2: Simplify gfs2_write_alloc_required
authorBob Peterson <rpeterso@redhat.com>
Thu, 24 Jun 2010 23:21:20 +0000 (19:21 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 29 Jul 2010 08:36:56 +0000 (09:36 +0100)
Function gfs2_write_alloc_required always returned zero as its
return code.  Therefore, it doesn't need to return a return code
at all.  Given that, we can use the return value to return whether
or not the dinode needs block allocations rather than passing
that value in, which in turn simplifies a bunch of error checking.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/aops.c
fs/gfs2/bmap.c
fs/gfs2/bmap.h
fs/gfs2/file.c
fs/gfs2/quota.c
fs/gfs2/super.c

diff --cc fs/gfs2/aops.c
Simple merge
diff --cc fs/gfs2/bmap.c
Simple merge
diff --cc fs/gfs2/bmap.h
Simple merge
diff --cc fs/gfs2/file.c
Simple merge
diff --cc fs/gfs2/quota.c
Simple merge
diff --cc fs/gfs2/super.c
Simple merge