xfs: remove the unused parameter id from xfs_qm_dqattach_one
Since we never use the second parameter id, so remove it from xfs_qm_dqattach_one() function. Signed-off-by: Kaixu Xia <kaixuxia@tencent.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Darrick J. Wong

parent
3feb4ffbf6
commit
74af4c1770
@@ -249,7 +249,6 @@ xfs_qm_unmount_quotas(
|
|||||||
STATIC int
|
STATIC int
|
||||||
xfs_qm_dqattach_one(
|
xfs_qm_dqattach_one(
|
||||||
struct xfs_inode *ip,
|
struct xfs_inode *ip,
|
||||||
xfs_dqid_t id,
|
|
||||||
xfs_dqtype_t type,
|
xfs_dqtype_t type,
|
||||||
bool doalloc,
|
bool doalloc,
|
||||||
struct xfs_dquot **IO_idqpp)
|
struct xfs_dquot **IO_idqpp)
|
||||||
@@ -330,23 +329,23 @@ xfs_qm_dqattach_locked(
|
|||||||
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
|
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
|
||||||
|
|
||||||
if (XFS_IS_UQUOTA_ON(mp) && !ip->i_udquot) {
|
if (XFS_IS_UQUOTA_ON(mp) && !ip->i_udquot) {
|
||||||
error = xfs_qm_dqattach_one(ip, i_uid_read(VFS_I(ip)),
|
error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_USER,
|
||||||
XFS_DQTYPE_USER, doalloc, &ip->i_udquot);
|
doalloc, &ip->i_udquot);
|
||||||
if (error)
|
if (error)
|
||||||
goto done;
|
goto done;
|
||||||
ASSERT(ip->i_udquot);
|
ASSERT(ip->i_udquot);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (XFS_IS_GQUOTA_ON(mp) && !ip->i_gdquot) {
|
if (XFS_IS_GQUOTA_ON(mp) && !ip->i_gdquot) {
|
||||||
error = xfs_qm_dqattach_one(ip, i_gid_read(VFS_I(ip)),
|
error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_GROUP,
|
||||||
XFS_DQTYPE_GROUP, doalloc, &ip->i_gdquot);
|
doalloc, &ip->i_gdquot);
|
||||||
if (error)
|
if (error)
|
||||||
goto done;
|
goto done;
|
||||||
ASSERT(ip->i_gdquot);
|
ASSERT(ip->i_gdquot);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (XFS_IS_PQUOTA_ON(mp) && !ip->i_pdquot) {
|
if (XFS_IS_PQUOTA_ON(mp) && !ip->i_pdquot) {
|
||||||
error = xfs_qm_dqattach_one(ip, ip->i_d.di_projid, XFS_DQTYPE_PROJ,
|
error = xfs_qm_dqattach_one(ip, XFS_DQTYPE_PROJ,
|
||||||
doalloc, &ip->i_pdquot);
|
doalloc, &ip->i_pdquot);
|
||||||
if (error)
|
if (error)
|
||||||
goto done;
|
goto done;
|
||||||
|
Reference in New Issue
Block a user