Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
Pull btrfs fixes from Chris Mason: "This is a small pull with btrfs fixes. The biggest of the bunch is another fix for the new backref walking code. We're still hammering out one btrfs dio vs buffered reads problem, but that one will have to wait for the next rc." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: Btrfs: delay iput with async extents Btrfs: add a missing spin_lock Btrfs: don't assume to be on the correct extent in add_all_parents Btrfs: introduce btrfs_next_old_item
This commit is contained in:
@@ -987,7 +987,7 @@ static noinline void async_cow_start(struct btrfs_work *work)
|
||||
async_cow->start, async_cow->end, async_cow,
|
||||
&num_added);
|
||||
if (num_added == 0) {
|
||||
iput(async_cow->inode);
|
||||
btrfs_add_delayed_iput(async_cow->inode);
|
||||
async_cow->inode = NULL;
|
||||
}
|
||||
}
|
||||
@@ -1023,7 +1023,7 @@ static noinline void async_cow_free(struct btrfs_work *work)
|
||||
struct async_cow *async_cow;
|
||||
async_cow = container_of(work, struct async_cow, work);
|
||||
if (async_cow->inode)
|
||||
iput(async_cow->inode);
|
||||
btrfs_add_delayed_iput(async_cow->inode);
|
||||
kfree(async_cow);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user