diff options
author | Nikolay Borisov | 2019-01-03 10:50:02 +0200 |
---|---|---|
committer | David Sterba | 2019-02-25 14:13:19 +0100 |
commit | a1d64ba60926d095d77f747a0c50159d9e2a4d98 (patch) | |
tree | 851e9c03768ab7f5e0da83fa7367da75793e86bf /fs/btrfs/inode.c | |
parent | bd4691a0e866e774c9690f09fec573e845495f91 (diff) |
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: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d548538d0b16..cb996903c739 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -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); |