aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-01-25 20:06:38 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-01 02:33:06 -0500
commit79babd4a6ce26d6b0e6a56da47efb723431abc70 (patch)
tree7ca648ebc30157d588c75d38d25b5725d3af6cc3
parent959f9709c0251275f05fd9092ff25e9b9bec237e (diff)
Btrfs: remove old tree_root case in btrfs_read_locked_inode()
commit 67ade058ef2c65a3e56878af9c293ec76722a2e5 upstream. As Jeff explained in c2951f32d36c ("btrfs: remove old tree_root dirent processing in btrfs_real_readdir()"), supporting this old format is no longer necessary since the Btrfs magic number has been updated since we changed to the current format. There are other places where we still handle this old format, but since this is part of a fix that is going to stable, I'm only removing this one for now. Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: Chris Mason <clm@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--fs/btrfs/inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 8e3a5a266917..e70b7c695592 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3819,10 +3819,7 @@ cache_acl:
3819 break; 3819 break;
3820 case S_IFDIR: 3820 case S_IFDIR:
3821 inode->i_fop = &btrfs_dir_file_operations; 3821 inode->i_fop = &btrfs_dir_file_operations;
3822 if (root == root->fs_info->tree_root) 3822 inode->i_op = &btrfs_dir_inode_operations;
3823 inode->i_op = &btrfs_dir_ro_inode_operations;
3824 else
3825 inode->i_op = &btrfs_dir_inode_operations;
3826 break; 3823 break;
3827 case S_IFLNK: 3824 case S_IFLNK:
3828 inode->i_op = &btrfs_symlink_inode_operations; 3825 inode->i_op = &btrfs_symlink_inode_operations;