dev-replace.c (c404e0dc2c843b154f9a36c3aec10d0a715d88eb) | dev-replace.c (6c255e67cec1c38a0569c7f823eba63f9449ccf8) |
---|---|
1/* 2 * Copyright (C) STRATO AG 2012. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 477 unchanged lines hidden (view full) --- 486 tgt_device = dev_replace->tgtdev; 487 src_device = dev_replace->srcdev; 488 btrfs_dev_replace_unlock(dev_replace); 489 490 /* 491 * flush all outstanding I/O and inode extent mappings before the 492 * copy operation is declared as being finished 493 */ | 1/* 2 * Copyright (C) STRATO AG 2012. All rights reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public 6 * License v2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 477 unchanged lines hidden (view full) --- 486 tgt_device = dev_replace->tgtdev; 487 src_device = dev_replace->srcdev; 488 btrfs_dev_replace_unlock(dev_replace); 489 490 /* 491 * flush all outstanding I/O and inode extent mappings before the 492 * copy operation is declared as being finished 493 */ |
494 ret = btrfs_start_delalloc_roots(root->fs_info, 0); | 494 ret = btrfs_start_delalloc_roots(root->fs_info, 0, -1); |
495 if (ret) { 496 mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); 497 return ret; 498 } 499 btrfs_wait_ordered_roots(root->fs_info, -1); 500 501 trans = btrfs_start_transaction(root, 0); 502 if (IS_ERR(trans)) { --- 425 unchanged lines hidden --- | 495 if (ret) { 496 mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); 497 return ret; 498 } 499 btrfs_wait_ordered_roots(root->fs_info, -1); 500 501 trans = btrfs_start_transaction(root, 0); 502 if (IS_ERR(trans)) { --- 425 unchanged lines hidden --- |