aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ref-verify.c
diff options
context:
space:
mode:
authoraustinchang <[email protected]>2025-09-11 06:06:29 +0000
committerDavid Sterba <[email protected]>2025-09-15 03:25:40 +0000
commit8679d2687c351824d08cf1f0e86f3b65f22a00fe (patch)
tree889f0080de275f4846d53ceba15c318ad2e2915b /fs/btrfs/ref-verify.c
parentbtrfs: zoned: fix incorrect ASSERT in btrfs_zoned_reserve_data_reloc_bg() (diff)
downloadkernel-8679d2687c351824d08cf1f0e86f3b65f22a00fe.tar.gz
kernel-8679d2687c351824d08cf1f0e86f3b65f22a00fe.zip
btrfs: initialize inode::file_extent_tree after i_mode has been set
btrfs_init_file_extent_tree() uses S_ISREG() to determine if the file is a regular file. In the beginning of btrfs_read_locked_inode(), the i_mode hasn't been read from inode item, then file_extent_tree won't be used at all in volumes without NO_HOLES. Fix this by calling btrfs_init_file_extent_tree() after i_mode is initialized in btrfs_read_locked_inode(). Fixes: 3d7db6e8bd22e6 ("btrfs: don't allocate file extent tree for non regular files") CC: [email protected] # 6.12+ Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: austinchang <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ref-verify.c')
0 files changed, 0 insertions, 0 deletions