Skip to content

Commit dfeef68

Browse files
author
Miklos Szeredi
committed
vfs: remove ".readlink = generic_readlink" assignments
If .readlink == NULL implies generic_readlink(). Generated by: to_del="\.readlink.*=.*generic_readlink" for i in `git grep -l $to_del`; do sed -i "/$to_del"/d $i; done Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 76fca90 commit dfeef68

38 files changed

Lines changed: 0 additions & 45 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ static const char *ll_get_link(struct dentry *dentry,
149149
}
150150

151151
const struct inode_operations ll_fast_symlink_inode_operations = {
152-
.readlink = generic_readlink,
153152
.setattr = ll_setattr,
154153
.get_link = ll_get_link,
155154
.getattr = ll_getattr,

‎fs/9p/vfs_inode.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,6 @@ static const struct inode_operations v9fs_file_inode_operations = {
14641464
};
14651465

14661466
static const struct inode_operations v9fs_symlink_inode_operations = {
1467-
.readlink = generic_readlink,
14681467
.get_link = v9fs_vfs_get_link,
14691468
.getattr = v9fs_vfs_getattr,
14701469
.setattr = v9fs_vfs_setattr,

‎fs/9p/vfs_inode_dotl.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,6 @@ const struct inode_operations v9fs_file_inode_operations_dotl = {
979979
};
980980

981981
const struct inode_operations v9fs_symlink_inode_operations_dotl = {
982-
.readlink = generic_readlink,
983982
.get_link = v9fs_vfs_get_link_dotl,
984983
.getattr = v9fs_vfs_getattr_dotl,
985984
.setattr = v9fs_vfs_setattr_dotl,

‎fs/affs/symlink.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ const struct address_space_operations affs_symlink_aops = {
7070
};
7171

7272
const struct inode_operations affs_symlink_inode_operations = {
73-
.readlink = generic_readlink,
7473
.get_link = page_get_link,
7574
.setattr = affs_notify_change,
7675
};

‎fs/autofs4/symlink.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ static const char *autofs4_get_link(struct dentry *dentry,
2525
}
2626

2727
const struct inode_operations autofs4_symlink_inode_operations = {
28-
.readlink = generic_readlink,
2928
.get_link = autofs4_get_link
3029
};

‎fs/btrfs/inode.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10668,7 +10668,6 @@ static const struct inode_operations btrfs_special_inode_operations = {
1066810668
.update_time = btrfs_update_time,
1066910669
};
1067010670
static const struct inode_operations btrfs_symlink_inode_operations = {
10671-
.readlink = generic_readlink,
1067210671
.get_link = page_get_link,
1067310672
.getattr = btrfs_getattr,
1067410673
.setattr = btrfs_setattr,

‎fs/ceph/inode.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,6 @@ void __ceph_do_pending_vmtruncate(struct inode *inode)
18791879
* symlinks
18801880
*/
18811881
static const struct inode_operations ceph_symlink_iops = {
1882-
.readlink = generic_readlink,
18831882
.get_link = simple_get_link,
18841883
.setattr = ceph_setattr,
18851884
.getattr = ceph_getattr,

‎fs/cifs/cifsfs.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,6 @@ const struct inode_operations cifs_file_inode_ops = {
914914
};
915915

916916
const struct inode_operations cifs_symlink_inode_ops = {
917-
.readlink = generic_readlink,
918917
.get_link = cifs_get_link,
919918
.permission = cifs_permission,
920919
.listxattr = cifs_listxattr,

‎fs/coda/cnode.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ static inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2)
1717
}
1818

1919
static const struct inode_operations coda_symlink_inode_operations = {
20-
.readlink = generic_readlink,
2120
.get_link = page_get_link,
2221
.setattr = coda_setattr,
2322
};

‎fs/configfs/symlink.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ static const char *configfs_get_link(struct dentry *dentry,
305305

306306
const struct inode_operations configfs_symlink_inode_operations = {
307307
.get_link = configfs_get_link,
308-
.readlink = generic_readlink,
309308
.setattr = configfs_setattr,
310309
};
311310

0 commit comments

Comments
 (0)