@@ -319,7 +319,7 @@ nfsd4_decode_nfsace4(struct nfsd4_compoundargs *argp, struct nfs4_ace *ace)
319319
320320/* A counted array of nfsace4's */
321321static noinline __be32
322- #if CONFIG_TRUENAS
322+ #ifdef CONFIG_TRUENAS
323323nfsd4_decode_acl (struct nfsd4_compoundargs * argp , struct nfs4_acl * * acl ,
324324 enum nfs4_acl_type acl_type )
325325{
@@ -365,7 +365,7 @@ nfsd4_decode_acl(struct nfsd4_compoundargs *argp, struct nfs4_acl **acl)
365365 if (* acl == NULL )
366366 return nfserr_jukebox ;
367367
368- #if CONFIG_TRUENAS
368+ #ifdef CONFIG_TRUENAS
369369 (* acl )-> flag = acl_flag ;
370370#endif /* CONFIG_TRUENAS */
371371 (* acl )-> naces = count ;
@@ -440,7 +440,7 @@ nfsd4_decode_fattr4(struct nfsd4_compoundargs *argp, u32 *bmval, u32 bmlen,
440440 iattr -> ia_valid |= ATTR_SIZE ;
441441 }
442442 if (bmval [0 ] & FATTR4_WORD0_ACL ) {
443- #if CONFIG_TRUENAS
443+ #ifdef CONFIG_TRUENAS
444444 status = nfsd4_decode_acl (argp , acl , NFS4ACL_ACL );
445445#else
446446 status = nfsd4_decode_acl (argp , acl );
@@ -533,7 +533,7 @@ nfsd4_decode_fattr4(struct nfsd4_compoundargs *argp, u32 *bmval, u32 bmlen,
533533 return nfserr_bad_xdr ;
534534 }
535535 }
536- #if CONFIG_TRUENAS
536+ #ifdef CONFIG_TRUENAS
537537 /*
538538 * This is based on the FATTR4_WORD0_ACL handling above.
539539 */
@@ -3010,7 +3010,7 @@ static __be32 nfsd4_encode_fattr4_supported_attrs(struct xdr_stream *xdr,
30103010 if (!IS_POSIXACL (d_inode (args -> dentry )) &&
30113011 !IS_NFSV4ACL (d_inode (args -> dentry )))
30123012 supp [0 ] &= ~FATTR4_WORD0_ACL ;
3013- #if CONFIG_TRUENAS
3013+ #ifdef CONFIG_TRUENAS
30143014 if (!IS_NFSV4ACL (d_inode (args -> dentry )))
30153015 supp [1 ] &= ~FATTR4_WORD1_DACL ;
30163016#endif /* CONFIG_TRUENAS */
@@ -3629,7 +3629,7 @@ nfsd4_encode_fattr4(struct svc_rqst *rqstp, struct xdr_stream *xdr,
36293629 __be32 attrlen , status ;
36303630 u32 attrmask [3 ];
36313631 int err ;
3632- #if CONFIG_TRUENAS
3632+ #ifdef CONFIG_TRUENAS
36333633 /*
36343634 * Even though we expect *either* ACL or DACL to be fetched,
36353635 * lets be cautious and use separate variables.
@@ -3731,7 +3731,7 @@ nfsd4_encode_fattr4(struct svc_rqst *rqstp, struct xdr_stream *xdr,
37313731 args .fhp = fhp ;
37323732
37333733 if (attrmask [0 ] & FATTR4_WORD0_ACL ) {
3734- #if CONFIG_TRUENAS
3734+ #ifdef CONFIG_TRUENAS
37353735 /*
37363736 * In TrueNAS we have renamed the existing nfsd4_get_nfs4_acl
37373737 * to get_nfs4_posix_acl, so that we can implement a nfsd4_get_nfs4_acl
@@ -3753,7 +3753,7 @@ nfsd4_encode_fattr4(struct svc_rqst *rqstp, struct xdr_stream *xdr,
37533753 goto out_nfserr ;
37543754 }
37553755
3756- #if CONFIG_TRUENAS
3756+ #ifdef CONFIG_TRUENAS
37573757 if (attrmask [1 ] & FATTR4_WORD1_DACL ) {
37583758 err = nfsd4_get_nfs4_acl (rqstp , dentry , & dacl , NFS4ACL_DACL );
37593759 if (err == - EOPNOTSUPP )
@@ -3804,7 +3804,7 @@ nfsd4_encode_fattr4(struct svc_rqst *rqstp, struct xdr_stream *xdr,
38043804 if (status != nfs_ok )
38053805 goto out ;
38063806 }
3807- #if CONFIG_TRUENAS
3807+ #ifdef CONFIG_TRUENAS
38083808 /* See FATTR4_WORD0_ACL above */
38093809 if (attrmask [1 ] & FATTR4_WORD1_DACL ) {
38103810 struct nfs4_ace * ace ;
@@ -3859,7 +3859,7 @@ nfsd4_encode_fattr4(struct svc_rqst *rqstp, struct xdr_stream *xdr,
38593859 security_release_secctx (& args .context );
38603860#endif /* CONFIG_NFSD_V4_SECURITY_LABEL */
38613861 kfree (args .acl );
3862- #if CONFIG_TRUENAS
3862+ #ifdef CONFIG_TRUENAS
38633863 kfree (dacl );
38643864#endif /* CONFIG_TRUENAS */
38653865 if (tempfh ) {
0 commit comments