X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fgfs2%2Fglops.c;h=7b82657a991096bea7291522f2bd357a5213d24e;hb=7a13e932281e7042a592f4f14db0b348199e7aac;hp=39c8ae23bd9c04a8b47b0cec2a371a597b5a2450;hpb=5cb69bcacea70024252138a9cb4229a142a93389;p=powerpc.git diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c index 39c8ae23bd..7b82657a99 100644 --- a/fs/gfs2/glops.c +++ b/fs/gfs2/glops.c @@ -163,10 +163,7 @@ static void inode_go_sync(struct gfs2_glock *gl) if (ip) { struct address_space *mapping = ip->i_inode.i_mapping; int error = filemap_fdatawait(mapping); - if (error == -ENOSPC) - set_bit(AS_ENOSPC, &mapping->flags); - else if (error) - set_bit(AS_EIO, &mapping->flags); + mapping_set_error(mapping, error); } clear_bit(GLF_DIRTY, &gl->gl_flags); gfs2_ail_empty_gl(gl);