From: Jeff Layton Date: Fri, 15 Oct 2010 19:34:07 +0000 (-0400) Subject: cifs: wait for writeback to complete in cifs_flush X-Git-Tag: v2.6.37-rc1~39^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3f1322af8f866be54ea79a4002fc30c98290411;p=pandora-kernel.git cifs: wait for writeback to complete in cifs_flush The f_op->flush operation is the last chance to return a writeback related error when closing a file. Ensure that we don't miss reporting any errors by waiting for writeback to complete in cifs_flush before proceeding. There's no reason to do this when the file isn't open for write however. Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman Reviewed-by: David Kleikamp Signed-off-by: Steve French --- Reading git-diff-tree failed