diff options
author | David Sterba <dsterba@suse.com> | 2018-08-24 17:41:17 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:37 +0200 |
commit | 9f6cbcbb09d0f2a73ccb9998f6ac34606da9c938 (patch) | |
tree | 60e3fb989355e447dafe90ae4d784b9ca55a4f8c /fs/btrfs/transaction.c | |
parent | btrfs: open code btrfs_dev_replace_stats_inc (diff) | |
download | linux-9f6cbcbb09d0f2a73ccb9998f6ac34606da9c938.tar.xz linux-9f6cbcbb09d0f2a73ccb9998f6ac34606da9c938.zip |
btrfs: open code btrfs_after_dev_replace_commit
Too trivial, the purpose can be simply documented in a comment.
Reviewed-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 3b1cc978d409..cadc747292d9 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1198,7 +1198,10 @@ again: list_add_tail(&fs_info->extent_root->dirty_list, &trans->transaction->switch_commits); - btrfs_after_dev_replace_commit(fs_info); + + /* Update dev-replace pointer once everything is committed */ + fs_info->dev_replace.committed_cursor_left = + fs_info->dev_replace.cursor_left_last_write_of_item; return 0; } |