diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 7147d329ddbc..e07f3376b7df 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -4390,7 +4390,6 @@ static int btrfs_log_changed_extents(struct btrfs_trans_handle *trans, | |||
4390 | 4390 | ||
4391 | INIT_LIST_HEAD(&extents); | 4391 | INIT_LIST_HEAD(&extents); |
4392 | 4392 | ||
4393 | down_write(&inode->dio_sem); | ||
4394 | write_lock(&tree->lock); | 4393 | write_lock(&tree->lock); |
4395 | test_gen = root->fs_info->last_trans_committed; | 4394 | test_gen = root->fs_info->last_trans_committed; |
4396 | logged_start = start; | 4395 | logged_start = start; |
@@ -4456,7 +4455,6 @@ process: | |||
4456 | } | 4455 | } |
4457 | WARN_ON(!list_empty(&extents)); | 4456 | WARN_ON(!list_empty(&extents)); |
4458 | write_unlock(&tree->lock); | 4457 | write_unlock(&tree->lock); |
4459 | up_write(&inode->dio_sem); | ||
4460 | 4458 | ||
4461 | btrfs_release_path(path); | 4459 | btrfs_release_path(path); |
4462 | if (!ret) | 4460 | if (!ret) |