diff options
Diffstat (limited to 'fs/btrfs/backref.c')
| -rw-r--r-- | fs/btrfs/backref.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 7a8a2fc19533..f735b8798ba1 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -1211,7 +1211,7 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans,  again:  	head = NULL; -	ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0); +	ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);  	if (ret < 0)  		goto out;  	BUG_ON(ret == 0); @@ -1488,15 +1488,15 @@ static int btrfs_find_all_roots_safe(struct btrfs_trans_handle *trans,  int btrfs_find_all_roots(struct btrfs_trans_handle *trans,  			 struct btrfs_fs_info *fs_info, u64 bytenr,  			 u64 time_seq, struct ulist **roots, -			 bool ignore_offset) +			 bool skip_commit_root_sem)  {  	int ret; -	if (!trans) +	if (!trans && !skip_commit_root_sem)  		down_read(&fs_info->commit_root_sem);  	ret = btrfs_find_all_roots_safe(trans, fs_info, bytenr, -					time_seq, roots, ignore_offset); -	if (!trans) +					time_seq, roots, false); +	if (!trans && !skip_commit_root_sem)  		up_read(&fs_info->commit_root_sem);  	return ret;  }  |