diff options
author | Liu Bo <bo.liu@linux.alibaba.com> | 2018-09-12 01:06:25 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-01 14:34:55 +0300 |
commit | be9b8dfa9c478a5bef22aeaa69d3f12d1033bbe4 (patch) | |
tree | 5e78b52b62ce3b1755f84b130c28a963418ea4ec /fs/btrfs/inode.c | |
parent | cebf05ca65d68d0de869a74754e0a0be35056243 (diff) | |
download | linux-be9b8dfa9c478a5bef22aeaa69d3f12d1033bbe4.tar.xz |
Btrfs: remove unused variables in __btrfs_unlink_inode
This code was first introduced in 5f39d397dfbe ("Btrfs: Create
extent_buffer interface for large blocksizes") and the function was
named btrfs_unlink_trans. It later got renamed to __btrfs_unlink_inode
and finally commit 16cdcec736cd ("btrfs: implement delayed inode items
operation") changed the way inodes are deleted and obviated the need for
those two members.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ replace changelog by Nikolay's version ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index a2aabdb85226..d324e2a06240 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -3935,9 +3935,7 @@ static int __btrfs_unlink_inode(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info = root->fs_info; struct btrfs_path *path; int ret = 0; - struct extent_buffer *leaf; struct btrfs_dir_item *di; - struct btrfs_key key; u64 index; u64 ino = btrfs_ino(inode); u64 dir_ino = btrfs_ino(dir); @@ -3955,8 +3953,6 @@ static int __btrfs_unlink_inode(struct btrfs_trans_handle *trans, ret = di ? PTR_ERR(di) : -ENOENT; goto err; } - leaf = path->nodes[0]; - btrfs_dir_item_key_to_cpu(leaf, di, &key); ret = btrfs_delete_one_dir_name(trans, root, path, di); if (ret) goto err; |