vfs: remove ".readlink = generic_readlink" assignments
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 9 Dec 2016 15:45:04 +0000 (16:45 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 9 Dec 2016 15:45:04 +0000 (16:45 +0100)
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>
38 files changed:
drivers/staging/lustre/lustre/llite/symlink.c
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c
fs/affs/symlink.c
fs/autofs4/symlink.c
fs/btrfs/inode.c
fs/ceph/inode.c
fs/cifs/cifsfs.c
fs/coda/cnode.c
fs/configfs/symlink.c
fs/ecryptfs/inode.c
fs/ext2/symlink.c
fs/ext4/symlink.c
fs/f2fs/namei.c
fs/fuse/dir.c
fs/gfs2/inode.c
fs/hostfs/hostfs_kern.c
fs/jffs2/symlink.c
fs/jfs/symlink.c
fs/kernfs/symlink.c
fs/libfs.c
fs/minix/inode.c
fs/namei.c
fs/ncpfs/inode.c
fs/nfs/symlink.c
fs/nilfs2/namei.c
fs/ocfs2/symlink.c
fs/orangefs/symlink.c
fs/overlayfs/inode.c
fs/proc/inode.c
fs/proc/self.c
fs/proc/thread_self.c
fs/reiserfs/namei.c
fs/squashfs/symlink.c
fs/sysv/inode.c
fs/ubifs/file.c
fs/xfs/xfs_iops.c
mm/shmem.c

index 82c7c48aa619c7090127025664f58eaed769cc5a..cd77b55d3895462e144071651f91ddce2185ef8e 100644 (file)
@@ -149,7 +149,6 @@ static const char *ll_get_link(struct dentry *dentry,
 }
 
 const struct inode_operations ll_fast_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .setattr        = ll_setattr,
        .get_link       = ll_get_link,
        .getattr        = ll_getattr,
index 30ca770c5e0b854d51abeb5193882a12503c8f8d..f4f4450119e42f74c1bc3269cc07ee798f9bc49b 100644 (file)
@@ -1464,7 +1464,6 @@ static const struct inode_operations v9fs_file_inode_operations = {
 };
 
 static const struct inode_operations v9fs_symlink_inode_operations = {
-       .readlink = generic_readlink,
        .get_link = v9fs_vfs_get_link,
        .getattr = v9fs_vfs_getattr,
        .setattr = v9fs_vfs_setattr,
index afaa4b6de8018f37f6bbc2c8595c0af01d14fdef..5999bd050678cd333ffa0f7e6e88f6a575e5a885 100644 (file)
@@ -979,7 +979,6 @@ const struct inode_operations v9fs_file_inode_operations_dotl = {
 };
 
 const struct inode_operations v9fs_symlink_inode_operations_dotl = {
-       .readlink = generic_readlink,
        .get_link = v9fs_vfs_get_link_dotl,
        .getattr = v9fs_vfs_getattr_dotl,
        .setattr = v9fs_vfs_setattr_dotl,
index 69b03dbb792f7a080abc70f5d45ff4bf50d458b9..ae622cdce142264af53127a8d94730c64a0d74d2 100644 (file)
@@ -70,7 +70,6 @@ const struct address_space_operations affs_symlink_aops = {
 };
 
 const struct inode_operations affs_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .setattr        = affs_notify_change,
 };
index 99aab00dc21763505adbe5a1d8d992a83e131aaf..ab0b4285a202c77ded6ab0c36d75621db281d1bc 100644 (file)
@@ -25,6 +25,5 @@ static const char *autofs4_get_link(struct dentry *dentry,
 }
 
 const struct inode_operations autofs4_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = autofs4_get_link
 };
index 8e3a5a266917c0fac9da9f41ee080262f3394779..d9c0eb7c16d4fd037fded8efe5c6dde798734142 100644 (file)
@@ -10668,7 +10668,6 @@ static const struct inode_operations btrfs_special_inode_operations = {
        .update_time    = btrfs_update_time,
 };
 static const struct inode_operations btrfs_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .getattr        = btrfs_getattr,
        .setattr        = btrfs_setattr,
index ef4d046473256009843b6b4c82e1b5b1e451b02d..9f125204c487c288a38871b5b77b980acffe684d 100644 (file)
@@ -1879,7 +1879,6 @@ retry:
  * symlinks
  */
 static const struct inode_operations ceph_symlink_iops = {
-       .readlink = generic_readlink,
        .get_link = simple_get_link,
        .setattr = ceph_setattr,
        .getattr = ceph_getattr,
index 15261ba464c5023f82014751fee8efaf09abec5f..e6efb9a8859892df6ded9d58334815439828d2ec 100644 (file)
@@ -914,7 +914,6 @@ const struct inode_operations cifs_file_inode_ops = {
 };
 
 const struct inode_operations cifs_symlink_inode_ops = {
-       .readlink = generic_readlink,
        .get_link = cifs_get_link,
        .permission = cifs_permission,
        .listxattr = cifs_listxattr,
index 1bfb7ba4e85e3ecc05000a3543a01917a7ed40a4..f13e09057c6b8297ce8f8572e880b953c4e4e864 100644 (file)
@@ -17,7 +17,6 @@ static inline int coda_fideq(struct CodaFid *fid1, struct CodaFid *fid2)
 }
 
 static const struct inode_operations coda_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .setattr        = coda_setattr,
 };
index db6d692896088ebc9745d9c05c85309280885b38..a6ab012a2c6acf9815bb8d4d1e29fb4568084b08 100644 (file)
@@ -305,7 +305,6 @@ static const char *configfs_get_link(struct dentry *dentry,
 
 const struct inode_operations configfs_symlink_inode_operations = {
        .get_link = configfs_get_link,
-       .readlink = generic_readlink,
        .setattr = configfs_setattr,
 };
 
index 4ea9d69152dc2cd750822540e9de44ccd908c75d..e7413f82d27bf392be10998aa9c8b2ef598a354e 100644 (file)
@@ -1084,7 +1084,6 @@ out:
 }
 
 const struct inode_operations ecryptfs_symlink_iops = {
-       .readlink = generic_readlink,
        .get_link = ecryptfs_get_link,
        .permission = ecryptfs_permission,
        .setattr = ecryptfs_setattr,
index 8437b191bf5de334a5c8908832c0dec0ac1f0fc7..eeffb0138a1744a32466308ed8f39c9151d0bd33 100644 (file)
@@ -21,7 +21,6 @@
 #include "xattr.h"
 
 const struct inode_operations ext2_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .setattr        = ext2_setattr,
 #ifdef CONFIG_EXT2_FS_XATTR
@@ -30,7 +29,6 @@ const struct inode_operations ext2_symlink_inode_operations = {
 };
  
 const struct inode_operations ext2_fast_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = simple_get_link,
        .setattr        = ext2_setattr,
 #ifdef CONFIG_EXT2_FS_XATTR
index 557b3b0d668c3f12d458a194d819ecb1da407645..73b184d161fc98dc6c870758243b1a03932cb85f 100644 (file)
@@ -83,21 +83,18 @@ errout:
 }
 
 const struct inode_operations ext4_encrypted_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = ext4_encrypted_get_link,
        .setattr        = ext4_setattr,
        .listxattr      = ext4_listxattr,
 };
 
 const struct inode_operations ext4_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .setattr        = ext4_setattr,
        .listxattr      = ext4_listxattr,
 };
 
 const struct inode_operations ext4_fast_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = simple_get_link,
        .setattr        = ext4_setattr,
        .listxattr      = ext4_listxattr,
index 489fa0d5f9149fc4b82c90a48d0278e8e81cb783..fcb00e7c3054bb3efc5e841be0f7f3c7af6acf88 100644 (file)
@@ -1075,7 +1075,6 @@ errout:
 }
 
 const struct inode_operations f2fs_encrypted_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = f2fs_encrypted_get_link,
        .getattr        = f2fs_getattr,
        .setattr        = f2fs_setattr,
@@ -1105,7 +1104,6 @@ const struct inode_operations f2fs_dir_inode_operations = {
 };
 
 const struct inode_operations f2fs_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = f2fs_get_link,
        .getattr        = f2fs_getattr,
        .setattr        = f2fs_setattr,
index b3ebe512d64c014a70f0802c75a0d7c88305ec10..0c07d0c651de0406fcdfba506d37cb1bd6db5848 100644 (file)
@@ -1834,7 +1834,6 @@ static const struct inode_operations fuse_common_inode_operations = {
 static const struct inode_operations fuse_symlink_inode_operations = {
        .setattr        = fuse_setattr,
        .get_link       = fuse_get_link,
-       .readlink       = generic_readlink,
        .getattr        = fuse_getattr,
        .listxattr      = fuse_listxattr,
 };
index fe3f84995c486f139651518e3dd58cc6c447d899..6cd9f84967b8a8b89a446c4a6232c65627233be2 100644 (file)
@@ -2067,7 +2067,6 @@ const struct inode_operations gfs2_dir_iops = {
 };
 
 const struct inode_operations gfs2_symlink_iops = {
-       .readlink = generic_readlink,
        .get_link = gfs2_get_link,
        .permission = gfs2_permission,
        .setattr = gfs2_setattr,
index 23e15ea53e4582fa43cd703ae715de95313c4a25..e61261a7417e57cc49a784c5a54b8a15f92bd352 100644 (file)
@@ -920,7 +920,6 @@ static const char *hostfs_get_link(struct dentry *dentry,
 }
 
 static const struct inode_operations hostfs_link_iops = {
-       .readlink       = generic_readlink,
        .get_link       = hostfs_get_link,
 };
 
index 8f3f0855fcd230a28563105108c5e0e19cf55b72..d2fa138a868ce2550724e8565881660be4b392e0 100644 (file)
@@ -13,7 +13,6 @@
 
 const struct inode_operations jffs2_symlink_inode_operations =
 {
-       .readlink =     generic_readlink,
        .get_link =     simple_get_link,
        .setattr =      jffs2_setattr,
        .listxattr =    jffs2_listxattr,
index c82404fee6cd3b391de27297996d5bd6246f9960..38320607993e2f5c093b26dcfeb372022aa90dff 100644 (file)
 #include "jfs_xattr.h"
 
 const struct inode_operations jfs_fast_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = simple_get_link,
        .setattr        = jfs_setattr,
        .listxattr      = jfs_listxattr,
 };
 
 const struct inode_operations jfs_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .setattr        = jfs_setattr,
        .listxattr      = jfs_listxattr,
index 9b43ca02b7ab2b28c5a17ea36856b3fa4237a55a..1684af4a8b9b4eaf752dfffc063b3a2cc622d472 100644 (file)
@@ -135,7 +135,6 @@ static const char *kernfs_iop_get_link(struct dentry *dentry,
 
 const struct inode_operations kernfs_symlink_iops = {
        .listxattr      = kernfs_iop_listxattr,
-       .readlink       = generic_readlink,
        .get_link       = kernfs_iop_get_link,
        .setattr        = kernfs_iop_setattr,
        .getattr        = kernfs_iop_getattr,
index 48826d4da189ec0373f24c16a89e4f1066815200..06e7e0c918e1fae815ba80beabd03159402ee4d4 100644 (file)
@@ -1129,7 +1129,6 @@ EXPORT_SYMBOL(simple_get_link);
 
 const struct inode_operations simple_symlink_inode_operations = {
        .get_link = simple_get_link,
-       .readlink = generic_readlink
 };
 EXPORT_SYMBOL(simple_symlink_inode_operations);
 
index f975d667c53900c08526e4774b8f74a96e822dbb..e7d9bf86d97595d1d1fe29bcca7ae5bdeefa0b6a 100644 (file)
@@ -434,7 +434,6 @@ static const struct address_space_operations minix_aops = {
 };
 
 static const struct inode_operations minix_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .getattr        = minix_getattr,
 };
index b87465d67c60ec18266ee2c7c022b415b984c608..c9baf3b3ffd753b189ae08a2adc3a79677347e28 100644 (file)
@@ -4813,7 +4813,6 @@ int page_symlink(struct inode *inode, const char *symname, int len)
 EXPORT_SYMBOL(page_symlink);
 
 const struct inode_operations page_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
 };
 EXPORT_SYMBOL(page_symlink_inode_operations);
index f6cf4c7e92b1b8c3cf7e7846aa4c968a24829b03..ba611bf1aff3bcfb3837257a86610431bf425d26 100644 (file)
@@ -243,7 +243,6 @@ static void ncp_set_attr(struct inode *inode, struct ncp_entry_info *nwinfo)
 
 #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
 static const struct inode_operations ncp_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .setattr        = ncp_notify_change,
 };
index 4fe3eead3868ebe418432b4593c10464188fb4ed..5a1d0ded897989c0243df2c07cd9108a38bbc594 100644 (file)
@@ -77,7 +77,6 @@ static const char *nfs_get_link(struct dentry *dentry,
  * symlinks can't do much...
  */
 const struct inode_operations nfs_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = nfs_get_link,
        .getattr        = nfs_getattr,
        .setattr        = nfs_setattr,
index 2b71c60fe982a1bafdca0848193acc33287b56c5..515d13c196daf81f69dc0b5501b4b9780c8d2743 100644 (file)
@@ -568,7 +568,6 @@ const struct inode_operations nilfs_special_inode_operations = {
 };
 
 const struct inode_operations nilfs_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .permission     = nilfs_permission,
 };
index 6ad8eecefe21ff26fa43ca92fbe16ee02b90c323..94cfacc9bad70ce0745c14d982a840453aaf6e44 100644 (file)
@@ -87,7 +87,6 @@ const struct address_space_operations ocfs2_fast_symlink_aops = {
 };
 
 const struct inode_operations ocfs2_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .getattr        = ocfs2_getattr,
        .setattr        = ocfs2_setattr,
index 10b0b06e075ef0295a39f9833360a936a3a221bf..02b1bbdbcc42feef7e88af3b6cf5bdb4ff2dba66 100644 (file)
@@ -9,7 +9,6 @@
 #include "orangefs-bufmap.h"
 
 const struct inode_operations orangefs_symlink_inode_operations = {
-       .readlink = generic_readlink,
        .get_link = simple_get_link,
        .setattr = orangefs_setattr,
        .getattr = orangefs_getattr,
index 7fb53d05553780ac4bc9f3909afdb81df723af32..19e0089c3dbf5e8559f9c470d6db192fb2472cf4 100644 (file)
@@ -348,7 +348,6 @@ static const struct inode_operations ovl_file_inode_operations = {
 static const struct inode_operations ovl_symlink_inode_operations = {
        .setattr        = ovl_setattr,
        .get_link       = ovl_get_link,
-       .readlink       = generic_readlink,
        .getattr        = ovl_getattr,
        .listxattr      = ovl_listxattr,
        .update_time    = ovl_update_time,
index e69ebe648a34bd69b1a0242fbdb5bb737edee2e9..827c0df5baa6b32bfecec7886a50647da578d25e 100644 (file)
@@ -410,7 +410,6 @@ static const char *proc_get_link(struct dentry *dentry,
 }
 
 const struct inode_operations proc_link_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = proc_get_link,
 };
 
index b7a29e55f8027dc0db915adc9775966ddcc6137e..39857f6db5cfd85c5ae4dff31b85f2739d783648 100644 (file)
@@ -26,7 +26,6 @@ static const char *proc_self_get_link(struct dentry *dentry,
 }
 
 static const struct inode_operations proc_self_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = proc_self_get_link,
 };
 
index adaba20b59b6e456ef5a0c81a5fcee549d6600fc..20614b62a9b793cd357b76f1eba97ab9218f89e7 100644 (file)
@@ -27,7 +27,6 @@ static const char *proc_thread_self_get_link(struct dentry *dentry,
 }
 
 static const struct inode_operations proc_thread_self_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = proc_thread_self_get_link,
 };
 
index e6a2b406af367071920a332bf6dc62a5d72e8fcf..bd39a998843da62db4b634800813c3de29d969c7 100644 (file)
@@ -1665,7 +1665,6 @@ const struct inode_operations reiserfs_dir_inode_operations = {
  * stuff added
  */
 const struct inode_operations reiserfs_symlink_inode_operations = {
-       .readlink = generic_readlink,
        .get_link       = page_get_link,
        .setattr = reiserfs_setattr,
        .listxattr = reiserfs_listxattr,
index 79b9c31a0c8ffdd223b83f9c243918e64ef3ed59..befeba0fa70af27b9b239c38d6e9592604cad071 100644 (file)
@@ -118,7 +118,6 @@ const struct address_space_operations squashfs_symlink_aops = {
 };
 
 const struct inode_operations squashfs_symlink_inode_ops = {
-       .readlink = generic_readlink,
        .get_link = page_get_link,
        .listxattr = squashfs_listxattr
 };
index d62c423a5a2d8723807d2bb5f65b227042dcf724..858fb72f9e0fa76a7b2214bb518537733bc1dea4 100644 (file)
@@ -145,7 +145,6 @@ static inline void write3byte(struct sysv_sb_info *sbi,
 }
 
 static const struct inode_operations sysv_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = page_get_link,
        .getattr        = sysv_getattr,
 };
index b4fbeefba246adf8eec82f45cf0692ec9f22e660..a7eae181e1bdd892aa13939c1ccb2db4ec16726b 100644 (file)
@@ -1628,7 +1628,6 @@ const struct inode_operations ubifs_file_inode_operations = {
 };
 
 const struct inode_operations ubifs_symlink_inode_operations = {
-       .readlink    = generic_readlink,
        .get_link    = simple_get_link,
        .setattr     = ubifs_setattr,
        .getattr     = ubifs_getattr,
index 405a65cd9d6bcf4c7fdf21f502ee267c0af7e970..de79f29c7e5be4da318dc08a562eeaedce9c3490 100644 (file)
@@ -1122,7 +1122,6 @@ static const struct inode_operations xfs_dir_ci_inode_operations = {
 };
 
 static const struct inode_operations xfs_symlink_inode_operations = {
-       .readlink               = generic_readlink,
        .get_link               = xfs_vn_get_link,
        .getattr                = xfs_vn_getattr,
        .setattr                = xfs_vn_setattr,
@@ -1131,7 +1130,6 @@ static const struct inode_operations xfs_symlink_inode_operations = {
 };
 
 static const struct inode_operations xfs_inline_symlink_inode_operations = {
-       .readlink               = generic_readlink,
        .get_link               = xfs_vn_get_link_inline,
        .getattr                = xfs_vn_getattr,
        .setattr                = xfs_vn_setattr,
index 166ebf5d2bceda1bdc9a824b6b3040f28588a171..aa47e6baecde992df81f29dbd4b86d5834cd11a0 100644 (file)
@@ -3174,7 +3174,6 @@ static ssize_t shmem_listxattr(struct dentry *dentry, char *buffer, size_t size)
 #endif /* CONFIG_TMPFS_XATTR */
 
 static const struct inode_operations shmem_short_symlink_operations = {
-       .readlink       = generic_readlink,
        .get_link       = simple_get_link,
 #ifdef CONFIG_TMPFS_XATTR
        .listxattr      = shmem_listxattr,
@@ -3182,7 +3181,6 @@ static const struct inode_operations shmem_short_symlink_operations = {
 };
 
 static const struct inode_operations shmem_symlink_inode_operations = {
-       .readlink       = generic_readlink,
        .get_link       = shmem_get_link,
 #ifdef CONFIG_TMPFS_XATTR
        .listxattr      = shmem_listxattr,