@@ -269,8 +269,8 @@ static struct inode *iget_xattr(struct ubifs_info *c, ino_t inum)
269
269
return ERR_PTR (- EINVAL );
270
270
}
271
271
272
- static int __ubifs_setxattr (struct inode * host , const char * name ,
273
- const void * value , size_t size , int flags )
272
+ int ubifs_xattr_set (struct inode * host , const char * name , const void * value ,
273
+ size_t size , int flags )
274
274
{
275
275
struct inode * inode ;
276
276
struct ubifs_info * c = host -> i_sb -> s_fs_info ;
@@ -329,8 +329,8 @@ static int __ubifs_setxattr(struct inode *host, const char *name,
329
329
return err ;
330
330
}
331
331
332
- static ssize_t __ubifs_getxattr (struct inode * host , const char * name ,
333
- void * buf , size_t size )
332
+ ssize_t ubifs_xattr_get (struct inode * host , const char * name , void * buf ,
333
+ size_t size )
334
334
{
335
335
struct inode * inode ;
336
336
struct ubifs_info * c = host -> i_sb -> s_fs_info ;
@@ -486,7 +486,7 @@ static int remove_xattr(struct ubifs_info *c, struct inode *host,
486
486
return err ;
487
487
}
488
488
489
- static int __ubifs_removexattr (struct inode * host , const char * name )
489
+ static int ubifs_xattr_remove (struct inode * host , const char * name )
490
490
{
491
491
struct inode * inode ;
492
492
struct ubifs_info * c = host -> i_sb -> s_fs_info ;
@@ -548,7 +548,8 @@ static int init_xattrs(struct inode *inode, const struct xattr *xattr_array,
548
548
}
549
549
strcpy (name , XATTR_SECURITY_PREFIX );
550
550
strcpy (name + XATTR_SECURITY_PREFIX_LEN , xattr -> name );
551
- err = __ubifs_setxattr (inode , name , xattr -> value , xattr -> value_len , 0 );
551
+ err = ubifs_xattr_set (inode , name , xattr -> value ,
552
+ xattr -> value_len , 0 );
552
553
kfree (name );
553
554
if (err < 0 )
554
555
break ;
@@ -572,18 +573,18 @@ int ubifs_init_security(struct inode *dentry, struct inode *inode,
572
573
return err ;
573
574
}
574
575
575
- static int ubifs_xattr_get (const struct xattr_handler * handler ,
576
+ static int xattr_get (const struct xattr_handler * handler ,
576
577
struct dentry * dentry , struct inode * inode ,
577
578
const char * name , void * buffer , size_t size )
578
579
{
579
580
dbg_gen ("xattr '%s', ino %lu ('%pd'), buf size %zd" , name ,
580
581
inode -> i_ino , dentry , size );
581
582
582
583
name = xattr_full_name (handler , name );
583
- return __ubifs_getxattr (inode , name , buffer , size );
584
+ return ubifs_xattr_get (inode , name , buffer , size );
584
585
}
585
586
586
- static int ubifs_xattr_set (const struct xattr_handler * handler ,
587
+ static int xattr_set (const struct xattr_handler * handler ,
587
588
struct dentry * dentry , struct inode * inode ,
588
589
const char * name , const void * value ,
589
590
size_t size , int flags )
@@ -594,27 +595,27 @@ static int ubifs_xattr_set(const struct xattr_handler *handler,
594
595
name = xattr_full_name (handler , name );
595
596
596
597
if (value )
597
- return __ubifs_setxattr (inode , name , value , size , flags );
598
+ return ubifs_xattr_set (inode , name , value , size , flags );
598
599
else
599
- return __ubifs_removexattr (inode , name );
600
+ return ubifs_xattr_remove (inode , name );
600
601
}
601
602
602
603
static const struct xattr_handler ubifs_user_xattr_handler = {
603
604
.prefix = XATTR_USER_PREFIX ,
604
- .get = ubifs_xattr_get ,
605
- .set = ubifs_xattr_set ,
605
+ .get = xattr_get ,
606
+ .set = xattr_set ,
606
607
};
607
608
608
609
static const struct xattr_handler ubifs_trusted_xattr_handler = {
609
610
.prefix = XATTR_TRUSTED_PREFIX ,
610
- .get = ubifs_xattr_get ,
611
- .set = ubifs_xattr_set ,
611
+ .get = xattr_get ,
612
+ .set = xattr_set ,
612
613
};
613
614
614
615
static const struct xattr_handler ubifs_security_xattr_handler = {
615
616
.prefix = XATTR_SECURITY_PREFIX ,
616
- .get = ubifs_xattr_get ,
617
- .set = ubifs_xattr_set ,
617
+ .get = xattr_get ,
618
+ .set = xattr_set ,
618
619
};
619
620
620
621
const struct xattr_handler * ubifs_xattr_handlers [] = {
0 commit comments