]> Git Repo - linux.git/commit - fs/cifs/inode.c
cifs: eliminate cifsInodeInfo->write_behind_rc (try #6)
authorJeff Layton <[email protected]>
Fri, 22 Oct 2010 18:52:29 +0000 (14:52 -0400)
committerSteve French <[email protected]>
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 <[email protected]>
Reviewed-by: Suresh Jayaraman <[email protected]>
Reviewed-by: Dave Kleikamp <[email protected]>
Signed-off-by: Steve French <[email protected]>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/file.c
fs/cifs/inode.c
This page took 0.04067 seconds and 4 git commands to generate.