diff options
| author | David Sterba <[email protected]> | 2024-01-20 01:26:32 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-03-04 15:24:48 +0000 |
| commit | be73f4448b607e6b7ce41cd8ef2214fdf6e7986f (patch) | |
| tree | cc278a37151e0d1eb97e2bf6c7a71353a36fc67a /fs/btrfs/delayed-inode.c | |
| parent | btrfs: delayed-inode: drop pointless BUG_ON in __btrfs_remove_delayed_item() (diff) | |
| download | kernel-be73f4448b607e6b7ce41cd8ef2214fdf6e7986f.tar.gz kernel-be73f4448b607e6b7ce41cd8ef2214fdf6e7986f.zip | |
btrfs: change BUG_ON to assertion when checking for delayed_node root
The pointer to root is initialized in btrfs_init_delayed_node(), no need
to check for it again. Change the BUG_ON to assertion.
Reviewed-by: Josef Bacik <[email protected]>
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
| -rw-r--r-- | fs/btrfs/delayed-inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index 0b1701f1b8c9..efe435403b77 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -978,7 +978,7 @@ static void btrfs_release_delayed_inode(struct btrfs_delayed_node *delayed_node) if (delayed_node && test_bit(BTRFS_DELAYED_NODE_INODE_DIRTY, &delayed_node->flags)) { - BUG_ON(!delayed_node->root); + ASSERT(delayed_node->root); clear_bit(BTRFS_DELAYED_NODE_INODE_DIRTY, &delayed_node->flags); delayed_node->count--; |
