From: Eric Sandeen Date: Thu, 28 Jun 2018 20:11:54 +0000 (-0500) Subject: xfs: remove unused flags arg from xfs_dquot_verify X-Git-Tag: v4.18.0-rc0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=160942bc61fe2c021ed046a738295b517d277374;p=thirdparty%2Fxfsprogs-dev.git xfs: remove unused flags arg from xfs_dquot_verify Source kernel commit: e381a0f6c28a3f2a452d5fba9b917f03e5dc4ffb Long ago the flags argument was used to determine whether to issue warnings about corruptions, but that's done elsewhere now and the flag is unused here, so remove it. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_dquot_buf.c b/libxfs/xfs_dquot_buf.c index 43134e291..1486b2bd9 100644 --- a/libxfs/xfs_dquot_buf.c +++ b/libxfs/xfs_dquot_buf.c @@ -45,8 +45,7 @@ xfs_dquot_verify( struct xfs_mount *mp, xfs_disk_dquot_t *ddq, xfs_dqid_t id, - uint type, /* used only when IO_dorepair is true */ - uint flags) + uint type) /* used only when IO_dorepair is true */ { /* * We can encounter an uninitialized dquot buffer for 2 reasons: @@ -198,7 +197,7 @@ xfs_dquot_buf_verify( if (i == 0) id = be32_to_cpu(ddq->d_id); - fa = xfs_dquot_verify(mp, ddq, id + i, 0, 0); + fa = xfs_dquot_verify(mp, ddq, id + i, 0); if (fa) return fa; } diff --git a/libxfs/xfs_quota_defs.h b/libxfs/xfs_quota_defs.h index 067475e26..eeccffec3 100644 --- a/libxfs/xfs_quota_defs.h +++ b/libxfs/xfs_quota_defs.h @@ -154,8 +154,7 @@ typedef uint16_t xfs_qwarncnt_t; #define XFS_QMOPT_RESBLK_MASK (XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_RES_RTBLKS) extern xfs_failaddr_t xfs_dquot_verify(struct xfs_mount *mp, - struct xfs_disk_dquot *ddq, xfs_dqid_t id, uint type, - uint flags); + struct xfs_disk_dquot *ddq, xfs_dqid_t id, uint type); extern int xfs_calc_dquots_per_chunk(unsigned int nbblks); extern int xfs_dquot_repair(struct xfs_mount *mp, struct xfs_disk_dquot *ddq, xfs_dqid_t id, uint type); diff --git a/repair/dinode.c b/repair/dinode.c index 72e09cc99..de89c0f40 100644 --- a/repair/dinode.c +++ b/repair/dinode.c @@ -1399,7 +1399,7 @@ _("cannot read inode %" PRIu64 ", file block %" PRIu64 ", disk block %" PRIu64 " } } if (libxfs_dquot_verify(mp, &dqb->dd_diskdq, dqid, - quota_type, 0) != NULL) { + quota_type) != NULL) { do_warn(_("%s: Corrupt quota for id %u. "), quota_string, dqid); bad_dqb = 1;