xfs: add helpers to attach quotas to inodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 05:18:11 +0000 (22:18 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 15:03:15 +0000 (08:03 -0700)
commit7e85bc6c873215f19a0b750febfb097d1f3c3292
treef821a9abf0bd86d56af87ef06168a210c8be8fdb
parent04a2b7b254f9c72bdcb819a99d95df8504c9b639
xfs: add helpers to attach quotas to inodes

Add a helper routine to attach quota information to inodes that are
about to undergo repair.  If that fails, we need to schedule a
quotacheck for the next mount but allow the corrupted metadata repair to
continue.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/xfs_quota.h