diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-10-15 21:34:07 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-10-25 02:18:59 +0200 |
commit | d3f1322af8f866be54ea79a4002fc30c98290411 (patch) | |
tree | b043a2c269a0e2b8b64c34644dfe8586f114ead9 /fs/cifs/cifsfs.h | |
parent | cifs: convert cifsFileInfo->count to non-atomic counter (diff) | |
download | linux-d3f1322af8f866be54ea79a4002fc30c98290411.tar.xz linux-d3f1322af8f866be54ea79a4002fc30c98290411.zip |
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 <jlayton@redhat.com>
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Reviewed-by: David Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.h')
0 files changed, 0 insertions, 0 deletions