Files
linux/fs
Filipe Manana a35b3dd59b btrfs: fix comment about nbytes increase at replay_one_extent()
The comment is wrong about the part where it says a prealloc extent does
not contribute to an inode's nbytes - it does. Only holes don't contribute
and that's what we are checking for, as prealloc extents always have a
disk_bytenr different from 0. So fix the comment and re-organize the code
to not set nbytes twice and set it to the extent item's number of bytes
only if it doesn't represent a hole - in case it's a hole we have already
initialized nbytes to 0 when we declared it.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2025-09-23 08:49:23 +02:00
..
2025-06-10 22:21:16 -04:00
2025-06-11 13:41:05 -04:00
2025-08-18 13:16:49 +02:00
2025-08-21 10:27:05 +02:00
2025-08-15 16:10:46 +02:00
2025-06-29 19:03:46 -04:00
2025-05-23 14:20:44 +02:00