]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove unnecessary xfs_qm_dqattach parameter
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 28 Jun 2018 20:11:56 +0000 (15:11 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Jun 2018 20:11:56 +0000 (15:11 -0500)
Source kernel commit: c14cfccabe2af251388e20c1004ac5c6a970ba53

The flags argument is always zero, get rid of it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/xfs_attr.c

index 995ea644d1aae006ccf1738021647ec51213850c..1924133b8e2b94db5ad0d7566189c0863385f083 100644 (file)
@@ -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)
index 0002c3ed82dd9badf588c422ac64d8f359459251..e59f446f089a88cdd347a8b473624cf6906becbc 100644 (file)
@@ -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;