Skip to content

Commit e282fb7

Browse files
Andreas GruenbacherAl Viro
Andreas Gruenbacher
authored and
Al Viro
committed
hfsplus: Remove unused xattr handler list operations
The list operations can never be called; they are even documented to be unused. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 13d3408 commit e282fb7

File tree

4 files changed

+0
-44
lines changed

4 files changed

+0
-44
lines changed

fs/hfsplus/xattr.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -893,19 +893,8 @@ static int hfsplus_osx_setxattr(struct dentry *dentry, const char *name,
893893
return __hfsplus_setxattr(d_inode(dentry), name, buffer, size, flags);
894894
}
895895

896-
static size_t hfsplus_osx_listxattr(struct dentry *dentry, char *list,
897-
size_t list_size, const char *name, size_t name_len, int type)
898-
{
899-
/*
900-
* This method is not used.
901-
* It is used hfsplus_listxattr() instead of generic_listxattr().
902-
*/
903-
return -EOPNOTSUPP;
904-
}
905-
906896
const struct xattr_handler hfsplus_xattr_osx_handler = {
907897
.prefix = XATTR_MAC_OSX_PREFIX,
908-
.list = hfsplus_osx_listxattr,
909898
.get = hfsplus_osx_getxattr,
910899
.set = hfsplus_osx_setxattr,
911900
};

fs/hfsplus/xattr_security.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ static int hfsplus_security_setxattr(struct dentry *dentry, const char *name,
2929
XATTR_SECURITY_PREFIX_LEN);
3030
}
3131

32-
static size_t hfsplus_security_listxattr(struct dentry *dentry, char *list,
33-
size_t list_size, const char *name, size_t name_len, int type)
34-
{
35-
/*
36-
* This method is not used.
37-
* It is used hfsplus_listxattr() instead of generic_listxattr().
38-
*/
39-
return -EOPNOTSUPP;
40-
}
41-
4232
static int hfsplus_initxattrs(struct inode *inode,
4333
const struct xattr *xattr_array,
4434
void *fs_info)
@@ -92,7 +82,6 @@ int hfsplus_init_inode_security(struct inode *inode,
9282

9383
const struct xattr_handler hfsplus_xattr_security_handler = {
9484
.prefix = XATTR_SECURITY_PREFIX,
95-
.list = hfsplus_security_listxattr,
9685
.get = hfsplus_security_getxattr,
9786
.set = hfsplus_security_setxattr,
9887
};

fs/hfsplus/xattr_trusted.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,8 @@ static int hfsplus_trusted_setxattr(struct dentry *dentry, const char *name,
2626
XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN);
2727
}
2828

29-
static size_t hfsplus_trusted_listxattr(struct dentry *dentry, char *list,
30-
size_t list_size, const char *name, size_t name_len, int type)
31-
{
32-
/*
33-
* This method is not used.
34-
* It is used hfsplus_listxattr() instead of generic_listxattr().
35-
*/
36-
return -EOPNOTSUPP;
37-
}
38-
3929
const struct xattr_handler hfsplus_xattr_trusted_handler = {
4030
.prefix = XATTR_TRUSTED_PREFIX,
41-
.list = hfsplus_trusted_listxattr,
4231
.get = hfsplus_trusted_getxattr,
4332
.set = hfsplus_trusted_setxattr,
4433
};

fs/hfsplus/xattr_user.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,8 @@ static int hfsplus_user_setxattr(struct dentry *dentry, const char *name,
2626
XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
2727
}
2828

29-
static size_t hfsplus_user_listxattr(struct dentry *dentry, char *list,
30-
size_t list_size, const char *name, size_t name_len, int type)
31-
{
32-
/*
33-
* This method is not used.
34-
* It is used hfsplus_listxattr() instead of generic_listxattr().
35-
*/
36-
return -EOPNOTSUPP;
37-
}
38-
3929
const struct xattr_handler hfsplus_xattr_user_handler = {
4030
.prefix = XATTR_USER_PREFIX,
41-
.list = hfsplus_user_listxattr,
4231
.get = hfsplus_user_getxattr,
4332
.set = hfsplus_user_setxattr,
4433
};

0 commit comments

Comments
 (0)