xfs: pass xfs_da_args to xfs_attr_leaf_newentsize
As it's only ever called from contexts where the xfs_da_args is present and contains all the information needed inside the args structure. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:

committed by
Dave Chinner

parent
33a6039007
commit
c59f0ad23a
@@ -174,9 +174,7 @@ xfs_attr_calc_size(
|
||||
* Determine space new attribute will use, and if it would be
|
||||
* "local" or "remote" (note: local != inline).
|
||||
*/
|
||||
size = xfs_attr_leaf_newentsize(args->namelen, args->valuelen,
|
||||
args->geo->blksize, local);
|
||||
|
||||
size = xfs_attr_leaf_newentsize(args, local);
|
||||
nblks = XFS_DAENTER_SPACE_RES(mp, XFS_ATTR_FORK);
|
||||
if (*local) {
|
||||
if (size > (args->geo->blksize / 2)) {
|
||||
|
Reference in New Issue
Block a user