NFS: Allow the combination pNFS and labeled NFS
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 26 Dec 2015 20:06:03 +0000 (15:06 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 14:57:08 +0000 (09:57 -0500)
Fix the nfs4_pnfs_open_bitmap so that it also allows for labeled NFS.

Signed-off-by: Trond Myklebust <trond,myklebust@primarydata.com>
fs/nfs/nfs4proc.c

index 2f1714fda666b51158ecdbb69cbc0626baa12d27..1028d6dc40c039792f07428c5825f5caa709c6a7 100644 (file)
@@ -208,6 +208,9 @@ static const u32 nfs4_pnfs_open_bitmap[3] = {
        | FATTR4_WORD1_TIME_METADATA
        | FATTR4_WORD1_TIME_MODIFY,
        FATTR4_WORD2_MDSTHRESHOLD
+#ifdef CONFIG_NFS_V4_SECURITY_LABEL
+       | FATTR4_WORD2_SECURITY_LABEL
+#endif
 };
 
 static const u32 nfs4_open_noattr_bitmap[3] = {