diff options
| author | David Sterba <[email protected]> | 2024-01-20 01:22:37 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-03-04 15:24:47 +0000 |
| commit | 778e618b8bfedcc39354373c1b072c5fe044fa7b (patch) | |
| tree | 11eb49f1852309570b45cf0862fc1b4b4edba2ce /fs/btrfs/delayed-inode.c | |
| parent | btrfs: export: handle invalid inode or root reference in btrfs_get_parent() (diff) | |
| download | kernel-778e618b8bfedcc39354373c1b072c5fe044fa7b.tar.gz kernel-778e618b8bfedcc39354373c1b072c5fe044fa7b.zip | |
btrfs: delayed-inode: drop pointless BUG_ON in __btrfs_remove_delayed_item()
There's a BUG_ON checking for a valid pointer of fs_info::delayed_root
but it is valid since init_mount_fs_info() and has the same lifetime as
fs_info.
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, 0 insertions, 2 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index 08102883f560..0b1701f1b8c9 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -430,8 +430,6 @@ static void __btrfs_remove_delayed_item(struct btrfs_delayed_item *delayed_item) delayed_root = delayed_node->root->fs_info->delayed_root; - BUG_ON(!delayed_root); - if (delayed_item->type == BTRFS_DELAYED_INSERTION_ITEM) root = &delayed_node->ins_root; else |
