diff options
author | Chris Mason <clm@fb.com> | 2015-08-09 07:35:33 -0700 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-08-09 07:35:33 -0700 |
commit | 46cd28555ffaa40162290dba203daad0ff6f7abd (patch) | |
tree | a10fd81b6c7ff5ea7642b1e2462e529971e8713a /fs/btrfs/transaction.c | |
parent | da2f0f74cf7d074e5a8918c8efdf6aba4a989b4a (diff) | |
parent | e33e17ee1098d8d751552ac11c111e1c1a3db014 (diff) | |
download | talos-obmc-linux-46cd28555ffaa40162290dba203daad0ff6f7abd.tar.gz talos-obmc-linux-46cd28555ffaa40162290dba203daad0ff6f7abd.zip |
Merge branch 'jeffm-discard-4.3' into for-linus-4.3
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 91f44c9f7ebc..20267d47dbcd 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -258,6 +258,8 @@ loop: mutex_init(&cur_trans->cache_write_mutex); cur_trans->num_dirty_bgs = 0; spin_lock_init(&cur_trans->dirty_bgs_lock); + INIT_LIST_HEAD(&cur_trans->deleted_bgs); + spin_lock_init(&cur_trans->deleted_bgs_lock); list_add_tail(&cur_trans->list, &fs_info->trans_list); extent_io_tree_init(&cur_trans->dirty_pages, fs_info->btree_inode->i_mapping); |