NFSv3: Fix return value of nfs3_proc_setacls
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 2 Feb 2014 19:36:42 +0000 (14:36 -0500)
committerJiri Slaby <jslaby@suse.cz>
Fri, 18 Apr 2014 08:47:21 +0000 (10:47 +0200)
commit173d76aa5fd78eebd9893e201879d3a2df600c4c
tree3d571615149c38c9eb7371a90b549cc873a03bfa
parent0eec43085e1f17a7634ce07073cb6c254135beb7
NFSv3: Fix return value of nfs3_proc_setacls

commit 8f493b9cfcd8941c6b27d6ce8e3b4a78c094b3c1 upstream.

nfs3_proc_setacls is used internally by the NFSv3 create operations
to set the acl after the file has been created. If the operation
fails because the server doesn't support acls, then it must return '0',
not -EOPNOTSUPP.

Reported-by: Russell King <linux@arm.linux.org.uk>
Link: http://lkml.kernel.org/r/20140201010328.GI15937@n2100.arm.linux.org.uk
Cc: Christoph Hellwig <hch@lst.de>
Tested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/nfs/nfs3acl.c