|
@@ -64,7 +64,6 @@ static const struct inode_operations btrfs_dir_ro_inode_operations;
|
|
|
static const struct inode_operations btrfs_special_inode_operations;
|
|
|
static const struct inode_operations btrfs_file_inode_operations;
|
|
|
static const struct address_space_operations btrfs_aops;
|
|
|
-static const struct address_space_operations btrfs_symlink_aops;
|
|
|
static const struct file_operations btrfs_dir_file_operations;
|
|
|
static const struct extent_io_ops btrfs_extent_io_ops;
|
|
|
|
|
@@ -3733,7 +3732,7 @@ cache_acl:
|
|
|
case S_IFLNK:
|
|
|
inode->i_op = &btrfs_symlink_inode_operations;
|
|
|
inode_nohighmem(inode);
|
|
|
- inode->i_mapping->a_ops = &btrfs_symlink_aops;
|
|
|
+ inode->i_mapping->a_ops = &btrfs_aops;
|
|
|
break;
|
|
|
default:
|
|
|
inode->i_op = &btrfs_special_inode_operations;
|
|
@@ -10174,7 +10173,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry,
|
|
|
|
|
|
inode->i_op = &btrfs_symlink_inode_operations;
|
|
|
inode_nohighmem(inode);
|
|
|
- inode->i_mapping->a_ops = &btrfs_symlink_aops;
|
|
|
+ inode->i_mapping->a_ops = &btrfs_aops;
|
|
|
inode_set_bytes(inode, name_len);
|
|
|
btrfs_i_size_write(BTRFS_I(inode), name_len);
|
|
|
err = btrfs_update_inode(trans, root, inode);
|
|
@@ -10550,13 +10549,6 @@ static const struct address_space_operations btrfs_aops = {
|
|
|
.error_remove_page = generic_error_remove_page,
|
|
|
};
|
|
|
|
|
|
-static const struct address_space_operations btrfs_symlink_aops = {
|
|
|
- .readpage = btrfs_readpage,
|
|
|
- .writepage = btrfs_writepage,
|
|
|
- .invalidatepage = btrfs_invalidatepage,
|
|
|
- .releasepage = btrfs_releasepage,
|
|
|
-};
|
|
|
-
|
|
|
static const struct inode_operations btrfs_file_inode_operations = {
|
|
|
.getattr = btrfs_getattr,
|
|
|
.setattr = btrfs_setattr,
|