diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 24e8a356a36c..c69145b66ea4 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -3660,7 +3660,7 @@ static int check_path_shared(struct btrfs_root *root, | |||
3660 | eb = path->nodes[level]; | 3660 | eb = path->nodes[level]; |
3661 | if (!btrfs_block_can_be_shared(root, eb)) | 3661 | if (!btrfs_block_can_be_shared(root, eb)) |
3662 | continue; | 3662 | continue; |
3663 | ret = btrfs_lookup_extent_info(NULL, root, eb->start, eb->len, | 3663 | ret = btrfs_lookup_extent_info(NULL, root, eb->start, level, 1, |
3664 | &refs, NULL); | 3664 | &refs, NULL); |
3665 | if (refs > 1) | 3665 | if (refs > 1) |
3666 | return 1; | 3666 | return 1; |