android_kernel_xiaomi_sm8350/fs/nfs
Neil Brown 432409eebc NFS: Fix for bug in handling of errors for O_DIRECT writes
Commit eda3cef8dd ("NFS: Fix error
handling in nfs_direct_write_result()") ensured that if a WRITE returns
an error, then data->res.verf->committed is not tested (as it is not
initialised).

Then commit 60fa3f769f ("NFS: Fix two bugs
in the O_DIRECT write code") inadvertently reverted this while fixing
other problems.

So move the test so that we never examine ->committed in an error case,
and fix a speeling error while we are there.

Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-23 16:41:21 -07:00
..
callback_proc.c
callback_xdr.c
callback.c
callback.h
client.c mm: bdi init hooks 2007-10-17 08:42:45 -07:00
delegation.c NFSv4: Fix an rpc_cred reference leakage in fs/nfs/delegation.c 2007-10-19 17:19:30 -04:00
delegation.h
dir.c NFS: Fix a race in sillyrename 2007-10-19 17:19:16 -04:00
direct.c NFS: Fix for bug in handling of errors for O_DIRECT writes 2007-10-23 16:41:21 -07:00
file.c NFSv4: Ensure that we wait for the CLOSE request to complete 2007-10-19 17:19:25 -04:00
getroot.c NFS: Fix an Oops in encode_lookup() 2007-09-28 15:36:42 -07:00
idmap.c
inode.c NFSv4: Ensure that we wait for the CLOSE request to complete 2007-10-19 17:19:25 -04:00
internal.h NFS: use in-kernel mount argument structure for nfsv4 mounts 2007-10-09 17:17:28 -04:00
iostat.h
Makefile [NFS] [PATCH] nfs: tiny makefile cleanup 2007-10-09 17:15:36 -04:00
mount_clnt.c
namespace.c
nfs2xdr.c SUNRPC: mark bulk read/write data in xdrbuf 2007-10-09 17:17:34 -04:00
nfs3acl.c NFS: Remove nfs_begin_data_update/nfs_end_data_update 2007-10-09 17:19:53 -04:00
nfs3proc.c NFS: Use nfs_refresh_inode() in ops that aren't expected to change the inode 2007-10-09 17:20:45 -04:00
nfs3xdr.c SUNRPC: mark bulk read/write data in xdrbuf 2007-10-09 17:17:34 -04:00
nfs4_fs.h nfs: Fix build break with CONFIG_NFS_V4=n 2007-10-19 19:27:46 -07:00
nfs4namespace.c
nfs4proc.c NFSv4: Ensure that we wait for the CLOSE request to complete 2007-10-19 17:19:25 -04:00
nfs4renewd.c
nfs4state.c NFSv4: Ensure that we wait for the CLOSE request to complete 2007-10-19 17:19:25 -04:00
nfs4xdr.c NFSv4: Make NFSv4 ACCESS calls return attributes too... 2007-10-09 17:18:38 -04:00
nfsroot.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
pagelist.c
proc.c NFSv2: Ensure that the directory metadata gets revalidated on file create 2007-10-21 13:37:02 -04:00
read.c NFS: Fix atime revalidation in read() 2007-10-09 17:19:06 -04:00
super.c NFS: Show "nointr" mount option 2007-10-09 17:18:17 -04:00
symlink.c
sysctl.c
unlink.c NFS: Fix a typo in nfs_call_unlink() 2007-10-21 13:37:07 -04:00
write.c NFS: Fix a writeback race... 2007-10-19 17:18:57 -04:00