[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [GFS2 PATCH 1/3] 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).

-- Wendy

 Signed-off-by: S. Wendy Cheng <wcheng redhat com>

 bmap.c |    1 +
 1 files changed, 1 insertion(+)

--- gfs2-nmw/fs/gfs2/bmap.c	2007-06-12 16:32:46.000000000 -0400
+++ gfs2-nfs/fs/gfs2/bmap.c	2007-06-22 14:29:53.000000000 -0400
@@ -927,6 +927,7 @@ static int gfs2_block_truncate_page(stru
 		/* Uhhuh. Read error. Complain and punt. */
 		if (!buffer_uptodate(bh))
 			goto unlock;
+		err = 0;
 	}
 
 	if (sdp->sd_args.ar_data == GFS2_DATA_ORDERED || gfs2_is_jdata(ip))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]