Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c14cfcca authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: remove unnecessary xfs_qm_dqattach parameter



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

Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent d7103eeb
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -236,7 +236,7 @@ xfs_attr_set(
	args.op_flags = XFS_DA_OP_ADDNAME | XFS_DA_OP_OKNOENT;
	args.op_flags = XFS_DA_OP_ADDNAME | XFS_DA_OP_OKNOENT;
	args.total = xfs_attr_calc_size(&args, &local);
	args.total = xfs_attr_calc_size(&args, &local);


	error = xfs_qm_dqattach(dp, 0);
	error = xfs_qm_dqattach(dp);
	if (error)
	if (error)
		return error;
		return error;


@@ -427,7 +427,7 @@ xfs_attr_remove(
	 */
	 */
	args.op_flags = XFS_DA_OP_OKNOENT;
	args.op_flags = XFS_DA_OP_OKNOENT;


	error = xfs_qm_dqattach(dp, 0);
	error = xfs_qm_dqattach(dp);
	if (error)
	if (error)
		return error;
		return error;


+3 −3
Original line number Original line Diff line number Diff line
@@ -848,7 +848,7 @@ xfs_free_eofblocks(
		/*
		/*
		 * Attach the dquots to the inode up front.
		 * Attach the dquots to the inode up front.
		 */
		 */
		error = xfs_qm_dqattach(ip, 0);
		error = xfs_qm_dqattach(ip);
		if (error)
		if (error)
			return error;
			return error;


@@ -918,7 +918,7 @@ xfs_alloc_file_space(
	if (XFS_FORCED_SHUTDOWN(mp))
	if (XFS_FORCED_SHUTDOWN(mp))
		return -EIO;
		return -EIO;


	error = xfs_qm_dqattach(ip, 0);
	error = xfs_qm_dqattach(ip);
	if (error)
	if (error)
		return error;
		return error;


@@ -1169,7 +1169,7 @@ xfs_free_file_space(


	trace_xfs_free_file_space(ip);
	trace_xfs_free_file_space(ip);


	error = xfs_qm_dqattach(ip, 0);
	error = xfs_qm_dqattach(ip);
	if (error)
	if (error)
		return error;
		return error;


+5 −5
Original line number Original line Diff line number Diff line
@@ -1424,11 +1424,11 @@ xfs_link(
	if (XFS_FORCED_SHUTDOWN(mp))
	if (XFS_FORCED_SHUTDOWN(mp))
		return -EIO;
		return -EIO;


	error = xfs_qm_dqattach(sip, 0);
	error = xfs_qm_dqattach(sip);
	if (error)
	if (error)
		goto std_return;
		goto std_return;


	error = xfs_qm_dqattach(tdp, 0);
	error = xfs_qm_dqattach(tdp);
	if (error)
	if (error)
		goto std_return;
		goto std_return;


@@ -1929,7 +1929,7 @@ xfs_inactive(
	     ip->i_d.di_nextents > 0 || ip->i_delayed_blks > 0))
	     ip->i_d.di_nextents > 0 || ip->i_delayed_blks > 0))
		truncate = 1;
		truncate = 1;


	error = xfs_qm_dqattach(ip, 0);
	error = xfs_qm_dqattach(ip);
	if (error)
	if (error)
		return;
		return;


@@ -2592,11 +2592,11 @@ xfs_remove(
	if (XFS_FORCED_SHUTDOWN(mp))
	if (XFS_FORCED_SHUTDOWN(mp))
		return -EIO;
		return -EIO;


	error = xfs_qm_dqattach(dp, 0);
	error = xfs_qm_dqattach(dp);
	if (error)
	if (error)
		goto std_return;
		goto std_return;


	error = xfs_qm_dqattach(ip, 0);
	error = xfs_qm_dqattach(ip);
	if (error)
	if (error)
		goto std_return;
		goto std_return;


+2 −2
Original line number Original line Diff line number Diff line
@@ -224,7 +224,7 @@ xfs_iomap_write_direct(
	 * necessary and move on to transaction setup.
	 * necessary and move on to transaction setup.
	 */
	 */
	xfs_iunlock(ip, lockmode);
	xfs_iunlock(ip, lockmode);
	error = xfs_qm_dqattach(ip, 0);
	error = xfs_qm_dqattach(ip);
	if (error)
	if (error)
		return error;
		return error;


@@ -692,7 +692,7 @@ xfs_iomap_write_allocate(
	/*
	/*
	 * Make sure that the dquots are there.
	 * Make sure that the dquots are there.
	 */
	 */
	error = xfs_qm_dqattach(ip, 0);
	error = xfs_qm_dqattach(ip);
	if (error)
	if (error)
		return error;
		return error;


+1 −1
Original line number Original line Diff line number Diff line
@@ -855,7 +855,7 @@ xfs_setattr_size(
	/*
	/*
	 * Make sure that the dquots are attached to the inode.
	 * Make sure that the dquots are attached to the inode.
	 */
	 */
	error = xfs_qm_dqattach(ip, 0);
	error = xfs_qm_dqattach(ip);
	if (error)
	if (error)
		return error;
		return error;


Loading