@@ -355,23 +355,22 @@ static void nfs_clear_label_invalid(struct inode *inode)
355355 spin_unlock (& inode -> i_lock );
356356}
357357
358- void nfs_setsecurity (struct inode * inode , struct nfs_fattr * fattr ,
359- struct nfs4_label * label )
358+ void nfs_setsecurity (struct inode * inode , struct nfs_fattr * fattr )
360359{
361360 int error ;
362361
363- if (label == NULL )
362+ if (fattr -> label == NULL )
364363 return ;
365364
366365 if ((fattr -> valid & NFS_ATTR_FATTR_V4_SECURITY_LABEL ) && inode -> i_security ) {
367- error = security_inode_notifysecctx (inode , label -> label ,
368- label -> len );
366+ error = security_inode_notifysecctx (inode , fattr -> label -> label ,
367+ fattr -> label -> len );
369368 if (error )
370369 printk (KERN_ERR "%s() %s %d "
371370 "security_inode_notifysecctx() %d\n" ,
372371 __func__ ,
373- (char * )label -> label ,
374- label -> len , error );
372+ (char * )fattr -> label -> label ,
373+ fattr -> label -> len , error );
375374 nfs_clear_label_invalid (inode );
376375 }
377376}
@@ -398,8 +397,7 @@ struct nfs4_label *nfs4_label_alloc(struct nfs_server *server, gfp_t flags)
398397}
399398EXPORT_SYMBOL_GPL (nfs4_label_alloc );
400399#else
401- void nfs_setsecurity (struct inode * inode , struct nfs_fattr * fattr ,
402- struct nfs4_label * label )
400+ void nfs_setsecurity (struct inode * inode , struct nfs_fattr * fattr )
403401{
404402}
405403#endif
@@ -581,7 +579,7 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr)
581579 fattr -> size != 0 )
582580 nfs_set_cache_invalid (inode , NFS_INO_INVALID_BLOCKS );
583581
584- nfs_setsecurity (inode , fattr , fattr -> label );
582+ nfs_setsecurity (inode , fattr );
585583
586584 nfsi -> attrtimeo = NFS_MINATTRTIMEO (inode );
587585 nfsi -> attrtimeo_timestamp = now ;
@@ -1252,7 +1250,7 @@ __nfs_revalidate_inode(struct nfs_server *server, struct inode *inode)
12521250 if (nfsi -> cache_validity & NFS_INO_INVALID_ACL )
12531251 nfs_zap_acl_cache (inode );
12541252
1255- nfs_setsecurity (inode , fattr , fattr -> label );
1253+ nfs_setsecurity (inode , fattr );
12561254
12571255 dfprintk (PAGECACHE , "NFS: (%s/%Lu) revalidation complete\n" ,
12581256 inode -> i_sb -> s_id ,
0 commit comments