Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[linux-2.6-block.git] / fs / btrfs / inode.c
index a4f02501da402f594bfee8d471c48b8be5fe8293..d8bb0dbc4941ca3f288119134df64eeb1eb679da 100644 (file)
@@ -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);
 }