Darrick J. Wong 490d451fa5 xfs: fix inode_cluster_size rounding mayhem
inode_cluster_size is supposed to represent the size (in bytes) of an
inode cluster buffer.  We avoid having to handle multiple clusters per
filesystem block on filesystems with large blocks by openly rounding
this value up to 1 FSB when necessary.  However, we never reset
inode_cluster_size to reflect this new rounded value, which adds to the
potential for mistakes in calculating geometries.

Fix this by setting inode_cluster_size to reflect the rounded-up size if
needed, and special-case the few places in the sparse inodes code where
we actually need the smaller value to validate on-disk metadata.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2019-06-12 08:37:40 -07:00
..
2019-05-30 20:52:40 -07:00
2019-05-31 08:34:32 -07:00
2019-06-08 12:52:42 -07:00
2019-05-29 13:03:37 +02:00
2019-06-08 12:52:42 -07:00
2018-10-29 14:29:58 -07:00
2019-04-08 18:21:02 -05:00
2019-03-08 14:48:40 -08:00
2019-06-09 10:06:19 -07:00
2019-05-07 18:14:36 -07:00
2019-01-30 17:44:07 -05:00
2019-04-09 19:20:57 -04:00
2019-02-07 16:38:35 +01:00