Files
linux/fs
David Sterba 636d91d7ee btrfs: delete BUG_ON in btrfs_init_locked_inode()
The purpose of the BUG_ON is not clear. The helper btrfs_grab_root()
could return a NULL in case args->root would be a NULL or if there are
zero references. Then we check if the root pointer stored in the inode
still exists.

The whole call chain is for iget:

btrfs_iget
  btrfs_iget_path
    btrfs_iget_locked
      iget5_locked
	btrfs_init_locked_inode

which is called from many contexts where we the root pointer is used and
we can safely assume has enough references.

Signed-off-by: David Sterba <dsterba@suse.com>
2024-03-04 16:24:51 +01:00
..
2024-02-25 02:10:32 -05:00
2023-12-29 11:58:34 -08:00
2024-01-06 23:49:50 +01:00
2024-02-16 10:20:35 +09:00
2023-12-21 13:17:54 +01:00
2024-02-09 23:31:16 -05:00
2023-12-12 14:24:14 +01:00
2023-11-25 02:49:43 -05:00