diff options
author | Omar Sandoval <osandov@fb.com> | 2017-08-23 09:46:00 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-26 15:48:50 +0300 |
commit | bea7eafdbda3ba1d4b2ccb9cca829eefb7989bb9 (patch) | |
tree | 0c7da310c92022c74077534b890bb84a1dc2af22 /drivers/scsi/osst_detect.h | |
parent | 5f14efd3d437205143dcffcf776e0122eae1755a (diff) | |
download | linux-bea7eafdbda3ba1d4b2ccb9cca829eefb7989bb9.tar.xz |
Btrfs: fix incorrect {node,sector}size endianness from BTRFS_IOC_FS_INFO
fs_info->super_copy->{node,sector}size are little-endian, but the ioctl
should return the values in native endianness. Use the cached values in
btrfs_fs_info instead. Found with sparse.
Fixes: 80a773fbfc2d ("btrfs: retrieve more info from FS_INFO ioctl")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'drivers/scsi/osst_detect.h')
0 files changed, 0 insertions, 0 deletions