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)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 7 May 2014 06:30:51 +0000 (15:30 +0900)
commitd91bd7d09807e1985ce40a970f01dd1e7b54f16c
tree3d848078e753dea3237f628b0247f5bebcd3f718
parent199a94466dcd2b3885546038bf82038572dcc5e2
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