diff options
| author | 2025-09-18 12:58:53 +0100 | |
|---|---|---|
| committer | 2025-09-23 08:49:23 +0200 | |
| commit | a35b3dd59bf6fe2bf3c2777bdde623d722caa68c (patch) | |
| tree | 6740ee34b9c81e4cede807ce1bdcc4564e2812c1 /net/openvswitch/ssh:/git@git.zx2c4.com/git: | |
| parent | btrfs: return any hit error from extent_writepage_io() (diff) | |
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>
Diffstat (limited to 'net/openvswitch/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
