diff options
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r-- | fs/btrfs/relocation.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index efe9f792544d..8c1aae2c845d 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c | |||
@@ -2949,9 +2949,7 @@ static int relocate_file_extent_cluster(struct inode *inode, | |||
2949 | index = (cluster->start - offset) >> PAGE_CACHE_SHIFT; | 2949 | index = (cluster->start - offset) >> PAGE_CACHE_SHIFT; |
2950 | last_index = (cluster->end - offset) >> PAGE_CACHE_SHIFT; | 2950 | last_index = (cluster->end - offset) >> PAGE_CACHE_SHIFT; |
2951 | while (index <= last_index) { | 2951 | while (index <= last_index) { |
2952 | mutex_lock(&inode->i_mutex); | ||
2953 | ret = btrfs_delalloc_reserve_metadata(inode, PAGE_CACHE_SIZE); | 2952 | ret = btrfs_delalloc_reserve_metadata(inode, PAGE_CACHE_SIZE); |
2954 | mutex_unlock(&inode->i_mutex); | ||
2955 | if (ret) | 2953 | if (ret) |
2956 | goto out; | 2954 | goto out; |
2957 | 2955 | ||