xfs: pass attr geometry to attr leaf header conversion functions
authorBrian Foster <bfoster@redhat.com>
Mon, 13 Apr 2015 01:26:02 +0000 (11:26 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 13 Apr 2015 01:26:02 +0000 (11:26 +1000)
commit2f6612415436bab4d923a61d8df399b134247810
treef80ddfe18af6c2f4cffa59bf91caf979e1eb71ae
parentbbe051c841d522bf2aaa1d362b57fe47457187bf
xfs: pass attr geometry to attr leaf header conversion functions

The firstused field of the xfs_attr3_leaf_hdr structure is subject to an
overflow when fs blocksize is 64k. In preparation to handle this
overflow in the header conversion functions, pass the attribute geometry
to the functions that convert the in-core structure to and from the
on-disk structure.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_attr_leaf.c
fs/xfs/libxfs/xfs_attr_leaf.h
fs/xfs/xfs_attr_inactive.c
fs/xfs/xfs_attr_list.c