nfsd4: fix incorrect comment in nfsd4_set_nfs4_acl
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 15 Aug 2011 20:57:07 +0000 (16:57 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Aug 2011 22:22:49 +0000 (18:22 -0400)
Zero means "I don't care what kind of file this is".  And that's
probably what we want--acls are also settable at least on directories,
and if the filesystem doesn't want them on other objects, leave it to it
to complain.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c

index 0c92a17d17706cf7ad4e8f5c55f380fa6ce6809e..4c22870293e63765ea306d5d0c720cd0fb1f7340 100644 (file)
@@ -502,7 +502,7 @@ nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp,
        unsigned int flags = 0;
 
        /* Get inode */
-       error = fh_verify(rqstp, fhp, 0 /* S_IFREG */, NFSD_MAY_SATTR);
+       error = fh_verify(rqstp, fhp, 0, NFSD_MAY_SATTR);
        if (error)
                return error;