diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index e6d579053a47..835daed5561f 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -271,10 +271,10 @@ static int process_one_buffer(struct btrfs_root *log, | |||
271 | struct walk_control *wc, u64 gen) | 271 | struct walk_control *wc, u64 gen) |
272 | { | 272 | { |
273 | if (wc->pin) { | 273 | if (wc->pin) { |
274 | mutex_lock(&log->fs_info->alloc_mutex); | 274 | mutex_lock(&log->fs_info->pinned_mutex); |
275 | btrfs_update_pinned_extents(log->fs_info->extent_root, | 275 | btrfs_update_pinned_extents(log->fs_info->extent_root, |
276 | eb->start, eb->len, 1); | 276 | eb->start, eb->len, 1); |
277 | mutex_unlock(&log->fs_info->alloc_mutex); | 277 | mutex_unlock(&log->fs_info->pinned_mutex); |
278 | } | 278 | } |
279 | 279 | ||
280 | if (btrfs_buffer_uptodate(eb, gen)) { | 280 | if (btrfs_buffer_uptodate(eb, gen)) { |