Repository navigation
Commit fadc0d8
btrfs: fix stat blocks accounting
Round inode bytes and delalloc bytes up to real blocksize before
converting to sector size. Otherwise eg. files smaller than 512
are reported with zero blocks due to incorrect rounding.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@oracle.com>1 parent 52621cb commit fadc0d8
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6794 | 6794 | | |
6795 | 6795 | | |
6796 | 6796 | | |
| 6797 | + | |
| 6798 | + | |
6797 | 6799 | | |
6798 | 6800 | | |
6799 | 6801 | | |
6800 | | - | |
6801 | | - | |
| 6802 | + | |
| 6803 | + | |
6802 | 6804 | | |
6803 | 6805 | | |
6804 | 6806 | | |
| |||
0 commit comments