aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-23 03:54:13 -0400
committerDavid Sterba <dsterba@suse.com>2018-05-28 12:07:28 -0400
commit82b3e53b8da19b25ef36b68316374df47f8fa268 (patch)
tree209deecb0d6fc43f65190b6961ca865772803162 /fs/btrfs/dev-replace.c
parent0338dff6e0d91af053ef5d350d7388df666ae78e (diff)
btrfs: Remove delayed_iput parameter of btrfs_start_delalloc_roots
This parameter was introduced alongside the function in eb73c1b7cea7 ("Btrfs: introduce per-subvolume delalloc inode list") to avoid deadlocks since this function was used in the transaction commit path. However, commit 8d875f95da43 ("btrfs: disable strict file flushes for renames and truncates") removed that usage, rendering the parameter obsolete. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r--fs/btrfs/dev-replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c
index d097701d494d..12f703e127dd 100644
--- a/fs/btrfs/dev-replace.c
+++ b/fs/btrfs/dev-replace.c
@@ -594,7 +594,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
594 * flush all outstanding I/O and inode extent mappings before the 594 * flush all outstanding I/O and inode extent mappings before the
595 * copy operation is declared as being finished 595 * copy operation is declared as being finished
596 */ 596 */
597 ret = btrfs_start_delalloc_roots(fs_info, 0, -1); 597 ret = btrfs_start_delalloc_roots(fs_info, -1);
598 if (ret) { 598 if (ret) {
599 mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); 599 mutex_unlock(&dev_replace->lock_finishing_cancel_unmount);
600 return ret; 600 return ret;