cifs: eliminate cifsInodeInfo->write_behind_rc (try #6)
authorJeff Layton <jlayton@redhat.com>
Fri, 22 Oct 2010 18:52:29 +0000 (14:52 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 25 Oct 2010 00:19:00 +0000 (00:19 +0000)
write_behind_rc is redundant and just adds complexity to the code. What
we really want to do instead is to use mapping_set_error to reset the
flags on the mapping when we find a writeback error and can't report it
to userspace yet.

For cifs_flush and cifs_fsync, we shouldn't reset the flags since errors
returned there do get reported to userspace.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Reviewed-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

No differences found