Skip to content

Commit fd50eca

Browse files
agruenbaAl Viro
authored andcommitted
vfs: Remove {get,set,remove}xattr inode operations
These inode operations are no longer used; remove them. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 41fefa3 commit fd50eca

55 files changed

Lines changed: 0 additions & 319 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎drivers/staging/lustre/lustre/llite/file.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3213,10 +3213,7 @@ const struct inode_operations ll_file_inode_operations = {
32133213
.setattr = ll_setattr,
32143214
.getattr = ll_getattr,
32153215
.permission = ll_inode_permission,
3216-
.setxattr = generic_setxattr,
3217-
.getxattr = generic_getxattr,
32183216
.listxattr = ll_listxattr,
3219-
.removexattr = generic_removexattr,
32203217
.fiemap = ll_fiemap,
32213218
.get_acl = ll_get_acl,
32223219
};

‎drivers/staging/lustre/lustre/llite/namei.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,20 +1106,14 @@ const struct inode_operations ll_dir_inode_operations = {
11061106
.setattr = ll_setattr,
11071107
.getattr = ll_getattr,
11081108
.permission = ll_inode_permission,
1109-
.setxattr = generic_setxattr,
1110-
.getxattr = generic_getxattr,
11111109
.listxattr = ll_listxattr,
1112-
.removexattr = generic_removexattr,
11131110
.get_acl = ll_get_acl,
11141111
};
11151112

11161113
const struct inode_operations ll_special_inode_operations = {
11171114
.setattr = ll_setattr,
11181115
.getattr = ll_getattr,
11191116
.permission = ll_inode_permission,
1120-
.setxattr = generic_setxattr,
1121-
.getxattr = generic_getxattr,
11221117
.listxattr = ll_listxattr,
1123-
.removexattr = generic_removexattr,
11241118
.get_acl = ll_get_acl,
11251119
};

‎drivers/staging/lustre/lustre/llite/symlink.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,5 @@ const struct inode_operations ll_fast_symlink_inode_operations = {
155155
.get_link = ll_get_link,
156156
.getattr = ll_getattr,
157157
.permission = ll_inode_permission,
158-
.setxattr = generic_setxattr,
159-
.getxattr = generic_getxattr,
160158
.listxattr = ll_listxattr,
161-
.removexattr = generic_removexattr,
162159
};

‎fs/9p/vfs_inode_dotl.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -967,19 +967,13 @@ const struct inode_operations v9fs_dir_inode_operations_dotl = {
967967
.rename = v9fs_vfs_rename,
968968
.getattr = v9fs_vfs_getattr_dotl,
969969
.setattr = v9fs_vfs_setattr_dotl,
970-
.setxattr = generic_setxattr,
971-
.getxattr = generic_getxattr,
972-
.removexattr = generic_removexattr,
973970
.listxattr = v9fs_listxattr,
974971
.get_acl = v9fs_iop_get_acl,
975972
};
976973

977974
const struct inode_operations v9fs_file_inode_operations_dotl = {
978975
.getattr = v9fs_vfs_getattr_dotl,
979976
.setattr = v9fs_vfs_setattr_dotl,
980-
.setxattr = generic_setxattr,
981-
.getxattr = generic_getxattr,
982-
.removexattr = generic_removexattr,
983977
.listxattr = v9fs_listxattr,
984978
.get_acl = v9fs_iop_get_acl,
985979
};
@@ -989,8 +983,5 @@ const struct inode_operations v9fs_symlink_inode_operations_dotl = {
989983
.get_link = v9fs_vfs_get_link_dotl,
990984
.getattr = v9fs_vfs_getattr_dotl,
991985
.setattr = v9fs_vfs_setattr_dotl,
992-
.setxattr = generic_setxattr,
993-
.getxattr = generic_getxattr,
994-
.removexattr = generic_removexattr,
995986
.listxattr = v9fs_listxattr,
996987
};

‎fs/btrfs/inode.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10570,10 +10570,7 @@ static const struct inode_operations btrfs_dir_inode_operations = {
1057010570
.symlink = btrfs_symlink,
1057110571
.setattr = btrfs_setattr,
1057210572
.mknod = btrfs_mknod,
10573-
.setxattr = generic_setxattr,
10574-
.getxattr = generic_getxattr,
1057510573
.listxattr = btrfs_listxattr,
10576-
.removexattr = generic_removexattr,
1057710574
.permission = btrfs_permission,
1057810575
.get_acl = btrfs_get_acl,
1057910576
.set_acl = btrfs_set_acl,
@@ -10647,10 +10644,7 @@ static const struct address_space_operations btrfs_symlink_aops = {
1064710644
static const struct inode_operations btrfs_file_inode_operations = {
1064810645
.getattr = btrfs_getattr,
1064910646
.setattr = btrfs_setattr,
10650-
.setxattr = generic_setxattr,
10651-
.getxattr = generic_getxattr,
1065210647
.listxattr = btrfs_listxattr,
10653-
.removexattr = generic_removexattr,
1065410648
.permission = btrfs_permission,
1065510649
.fiemap = btrfs_fiemap,
1065610650
.get_acl = btrfs_get_acl,
@@ -10661,10 +10655,7 @@ static const struct inode_operations btrfs_special_inode_operations = {
1066110655
.getattr = btrfs_getattr,
1066210656
.setattr = btrfs_setattr,
1066310657
.permission = btrfs_permission,
10664-
.setxattr = generic_setxattr,
10665-
.getxattr = generic_getxattr,
1066610658
.listxattr = btrfs_listxattr,
10667-
.removexattr = generic_removexattr,
1066810659
.get_acl = btrfs_get_acl,
1066910660
.set_acl = btrfs_set_acl,
1067010661
.update_time = btrfs_update_time,
@@ -10675,10 +10666,7 @@ static const struct inode_operations btrfs_symlink_inode_operations = {
1067510666
.getattr = btrfs_getattr,
1067610667
.setattr = btrfs_setattr,
1067710668
.permission = btrfs_permission,
10678-
.setxattr = generic_setxattr,
10679-
.getxattr = generic_getxattr,
1068010669
.listxattr = btrfs_listxattr,
10681-
.removexattr = generic_removexattr,
1068210670
.update_time = btrfs_update_time,
1068310671
};
1068410672

‎fs/ceph/dir.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,10 +1486,7 @@ const struct inode_operations ceph_dir_iops = {
14861486
.permission = ceph_permission,
14871487
.getattr = ceph_getattr,
14881488
.setattr = ceph_setattr,
1489-
.setxattr = generic_setxattr,
1490-
.getxattr = generic_getxattr,
14911489
.listxattr = ceph_listxattr,
1492-
.removexattr = generic_removexattr,
14931490
.get_acl = ceph_get_acl,
14941491
.set_acl = ceph_set_acl,
14951492
.mknod = ceph_mknod,

‎fs/ceph/inode.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ const struct inode_operations ceph_file_iops = {
9494
.permission = ceph_permission,
9595
.setattr = ceph_setattr,
9696
.getattr = ceph_getattr,
97-
.setxattr = generic_setxattr,
98-
.getxattr = generic_getxattr,
9997
.listxattr = ceph_listxattr,
100-
.removexattr = generic_removexattr,
10198
.get_acl = ceph_get_acl,
10299
.set_acl = ceph_set_acl,
103100
};
@@ -1885,10 +1882,7 @@ static const struct inode_operations ceph_symlink_iops = {
18851882
.get_link = simple_get_link,
18861883
.setattr = ceph_setattr,
18871884
.getattr = ceph_getattr,
1888-
.setxattr = generic_setxattr,
1889-
.getxattr = generic_getxattr,
18901885
.listxattr = ceph_listxattr,
1891-
.removexattr = generic_removexattr,
18921886
};
18931887

18941888
int __ceph_setattr(struct inode *inode, struct iattr *attr)

‎fs/cifs/cifsfs.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -901,30 +901,21 @@ const struct inode_operations cifs_dir_inode_ops = {
901901
.setattr = cifs_setattr,
902902
.symlink = cifs_symlink,
903903
.mknod = cifs_mknod,
904-
.setxattr = generic_setxattr,
905-
.getxattr = generic_getxattr,
906904
.listxattr = cifs_listxattr,
907-
.removexattr = generic_removexattr,
908905
};
909906

910907
const struct inode_operations cifs_file_inode_ops = {
911908
.setattr = cifs_setattr,
912909
.getattr = cifs_getattr,
913910
.permission = cifs_permission,
914-
.setxattr = generic_setxattr,
915-
.getxattr = generic_getxattr,
916911
.listxattr = cifs_listxattr,
917-
.removexattr = generic_removexattr,
918912
};
919913

920914
const struct inode_operations cifs_symlink_inode_ops = {
921915
.readlink = generic_readlink,
922916
.get_link = cifs_get_link,
923917
.permission = cifs_permission,
924-
.setxattr = generic_setxattr,
925-
.getxattr = generic_getxattr,
926918
.listxattr = cifs_listxattr,
927-
.removexattr = generic_removexattr,
928919
};
929920

930921
static int cifs_clone_file_range(struct file *src_file, loff_t off,

‎fs/ecryptfs/inode.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,10 +1090,7 @@ const struct inode_operations ecryptfs_symlink_iops = {
10901090
.permission = ecryptfs_permission,
10911091
.setattr = ecryptfs_setattr,
10921092
.getattr = ecryptfs_getattr_link,
1093-
.setxattr = generic_setxattr,
1094-
.getxattr = generic_getxattr,
10951093
.listxattr = ecryptfs_listxattr,
1096-
.removexattr = generic_removexattr
10971094
};
10981095

10991096
const struct inode_operations ecryptfs_dir_iops = {
@@ -1108,20 +1105,14 @@ const struct inode_operations ecryptfs_dir_iops = {
11081105
.rename = ecryptfs_rename,
11091106
.permission = ecryptfs_permission,
11101107
.setattr = ecryptfs_setattr,
1111-
.setxattr = generic_setxattr,
1112-
.getxattr = generic_getxattr,
11131108
.listxattr = ecryptfs_listxattr,
1114-
.removexattr = generic_removexattr
11151109
};
11161110

11171111
const struct inode_operations ecryptfs_main_iops = {
11181112
.permission = ecryptfs_permission,
11191113
.setattr = ecryptfs_setattr,
11201114
.getattr = ecryptfs_getattr,
1121-
.setxattr = generic_setxattr,
1122-
.getxattr = generic_getxattr,
11231115
.listxattr = ecryptfs_listxattr,
1124-
.removexattr = generic_removexattr
11251116
};
11261117

11271118
static int ecryptfs_xattr_get(const struct xattr_handler *handler,

‎fs/ext2/file.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ const struct file_operations ext2_file_operations = {
178178

179179
const struct inode_operations ext2_file_inode_operations = {
180180
#ifdef CONFIG_EXT2_FS_XATTR
181-
.setxattr = generic_setxattr,
182-
.getxattr = generic_getxattr,
183181
.listxattr = ext2_listxattr,
184-
.removexattr = generic_removexattr,
185182
#endif
186183
.setattr = ext2_setattr,
187184
.get_acl = ext2_get_acl,

0 commit comments

Comments
 (0)