From eb4b756b1e60b66e54932619088b645c712414a3 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 22 Oct 2010 14:52:29 -0400 Subject: 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 Reviewed-by: Suresh Jayaraman Reviewed-by: Dave Kleikamp Signed-off-by: Steve French --- fs/cifs/cifsfs.c | 1 - 1 file changed, 1 deletion(-) (limited to 'fs/cifs/cifsfs.c') diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 3437163..e8b9523 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -318,7 +318,6 @@ cifs_alloc_inode(struct super_block *sb) return NULL; cifs_inode->cifsAttrs = 0x20; /* default */ cifs_inode->time = 0; - cifs_inode->write_behind_rc = 0; /* Until the file is open and we have gotten oplock info back from the server, can not assume caching of file data or metadata */ -- cgit v1.1