mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
btrfs: remove root argument from check_item_in_log()
The root argument passed to check_item_in_log() always matches the root of the given directory, so it can be eliminated. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6d9cc07215
commit
d1ed82f355
@ -2280,13 +2280,13 @@ out:
|
|||||||
* to is unlinked
|
* to is unlinked
|
||||||
*/
|
*/
|
||||||
static noinline int check_item_in_log(struct btrfs_trans_handle *trans,
|
static noinline int check_item_in_log(struct btrfs_trans_handle *trans,
|
||||||
struct btrfs_root *root,
|
|
||||||
struct btrfs_root *log,
|
struct btrfs_root *log,
|
||||||
struct btrfs_path *path,
|
struct btrfs_path *path,
|
||||||
struct btrfs_path *log_path,
|
struct btrfs_path *log_path,
|
||||||
struct inode *dir,
|
struct inode *dir,
|
||||||
struct btrfs_key *dir_key)
|
struct btrfs_key *dir_key)
|
||||||
{
|
{
|
||||||
|
struct btrfs_root *root = BTRFS_I(dir)->root;
|
||||||
int ret;
|
int ret;
|
||||||
struct extent_buffer *eb;
|
struct extent_buffer *eb;
|
||||||
int slot;
|
int slot;
|
||||||
@ -2560,7 +2560,7 @@ again:
|
|||||||
if (found_key.offset > range_end)
|
if (found_key.offset > range_end)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ret = check_item_in_log(trans, root, log, path,
|
ret = check_item_in_log(trans, log, path,
|
||||||
log_path, dir,
|
log_path, dir,
|
||||||
&found_key);
|
&found_key);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user