From: Darrick J. Wong Date: Thu, 28 Jun 2018 20:11:56 +0000 (-0500) Subject: xfs: remove unnecessary xfs_qm_dqattach parameter X-Git-Tag: v4.18.0-rc0~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43cf369d54f78fb3dcf4c3325c01371ce49ffa46;p=thirdparty%2Fxfsprogs-dev.git xfs: remove unnecessary xfs_qm_dqattach parameter Source kernel commit: c14cfccabe2af251388e20c1004ac5c6a970ba53 The flags argument is always zero, get rid of it. Signed-off-by: Darrick J. Wong Reviewed-by: Brian Foster Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h index 995ea644d..1924133b8 100644 --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h @@ -468,7 +468,7 @@ roundup_64(uint64_t x, uint32_t y) #define xfs_trans_mod_dquot_byino(t,i,f,d) ((void) 0) #define xfs_trans_reserve_quota_nblks(t,i,b,n,f) (0) #define xfs_trans_unreserve_quota_nblks(t,i,b,n,f) ((void) 0) -#define xfs_qm_dqattach(i,f) (0) +#define xfs_qm_dqattach(i) (0) #define uuid_copy(s,d) platform_uuid_copy((s),(d)) #define uuid_equal(s,d) (platform_uuid_compare((s),(d)) == 0) diff --git a/libxfs/xfs_attr.c b/libxfs/xfs_attr.c index 0002c3ed8..e59f446f0 100644 --- a/libxfs/xfs_attr.c +++ b/libxfs/xfs_attr.c @@ -231,7 +231,7 @@ xfs_attr_set( args.op_flags = XFS_DA_OP_ADDNAME | XFS_DA_OP_OKNOENT; args.total = xfs_attr_calc_size(&args, &local); - error = xfs_qm_dqattach(dp, 0); + error = xfs_qm_dqattach(dp); if (error) return error; @@ -422,7 +422,7 @@ xfs_attr_remove( */ args.op_flags = XFS_DA_OP_OKNOENT; - error = xfs_qm_dqattach(dp, 0); + error = xfs_qm_dqattach(dp); if (error) return error;