Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1d64ba6 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba
Browse files

btrfs: Remove WARN_ON in btrfs_alloc_delalloc_work



It can never trigger since before calling alloc_delalloc_work we have
called igrab in start_delalloc_inodes.

Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent bd4691a0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -9915,7 +9915,6 @@ static struct btrfs_delalloc_work *btrfs_alloc_delalloc_work(struct inode *inode
	init_completion(&work->completion);
	INIT_LIST_HEAD(&work->list);
	work->inode = inode;
	WARN_ON_ONCE(!inode);
	btrfs_init_work(&work->work, btrfs_flush_delalloc_helper,
			btrfs_run_delalloc_work, NULL, NULL);