Repository navigation
Commit fce2936
Btrfs: Do not truncate sector_t on 32-bit with CONFIG_LBDAF=y
sector_t may be either "u64" (always 64 bit) or "unsigned long" (32 or 64
bit). Casting it to "unsigned long" will truncate it on 32-bit platforms
where CONFIG_LBDAF=y.
Cast to "unsigned long long" and format using "ll" instead.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>1 parent 778746b commit fce2936
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2958 | 2958 | | |
2959 | 2959 | | |
2960 | 2960 | | |
2961 | | - | |
| 2961 | + | |
2962 | 2962 | | |
2963 | | - | |
| 2963 | + | |
| 2964 | + | |
2964 | 2965 | | |
2965 | 2966 | | |
2966 | 2967 | | |
| |||
3027 | 3028 | | |
3028 | 3029 | | |
3029 | 3030 | | |
3030 | | - | |
3031 | | - | |
3032 | | - | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
3033 | 3035 | | |
3034 | 3036 | | |
3035 | 3037 | | |
| |||
0 commit comments