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)
commiteb4b756b1e60b66e54932619088b645c712414a3
treec2a10df2f33be6bd9a8b5491cc1815515dc59e84
parent6c0f6218ba04a5d6e61d0c55b68e6c4ef0736531
cifs: eliminate cifsInodeInfo->write_behind_rc (try #6)

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>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/file.c
fs/cifs/inode.c