aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorS. Wendy Cheng <wcheng@redhat.com>2007-06-25 21:14:31 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-07-09 03:23:54 -0400
commit1875f2f31b3955dff8c3712a56ae61836c8b90fe (patch)
treed2283452b7de1ae042cf6265cc9fe7f5dd08a20d
parent773ed1a044adc868036dee1722b8bca6ce5923e2 (diff)
[GFS2] Fix gfs2_block_truncate_page err return
Code segment inside gfs2_block_truncate_page() doesn't set the return code correctly. This causes NFSD erroneously returns EIO back to client with setattr procedure call (truncate error). Signed-off-by: S. Wendy Cheng <wcheng@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r--fs/gfs2/bmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index d16044cb023a..cd805a66880d 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -927,6 +927,7 @@ static int gfs2_block_truncate_page(struct address_space *mapping)
927 /* Uhhuh. Read error. Complain and punt. */ 927 /* Uhhuh. Read error. Complain and punt. */
928 if (!buffer_uptodate(bh)) 928 if (!buffer_uptodate(bh))
929 goto unlock; 929 goto unlock;
930 err = 0;
930 } 931 }
931 932
932 if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || gfs2_is_jdata(ip)) 933 if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || gfs2_is_jdata(ip))