diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-17 21:37:43 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-10-26 15:38:25 -0700 |
commit | 99d9d8d05da26f47aa8412397407f962bcb4713a (patch) | |
tree | 2f07187b9d9b5542be70ec3df252fcdb3ecb45de /fs/xfs/scrub/scrub.c | |
parent | 80e4e12688029e42fc6ab4cf7f229b090c61e6a7 (diff) | |
download | blackbird-op-linux-99d9d8d05da26f47aa8412397407f962bcb4713a.tar.gz blackbird-op-linux-99d9d8d05da26f47aa8412397407f962bcb4713a.zip |
xfs: scrub inode block mappings
Scrub an individual inode's block mappings to make sure they make sense.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/scrub.c')
-rw-r--r-- | fs/xfs/scrub/scrub.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index 45cc04680b8c..cb669197b395 100644 --- a/fs/xfs/scrub/scrub.c +++ b/fs/xfs/scrub/scrub.c @@ -215,6 +215,18 @@ static const struct xfs_scrub_meta_ops meta_scrub_ops[] = { .setup = xfs_scrub_setup_inode, .scrub = xfs_scrub_inode, }, + { /* inode data fork */ + .setup = xfs_scrub_setup_inode_bmap, + .scrub = xfs_scrub_bmap_data, + }, + { /* inode attr fork */ + .setup = xfs_scrub_setup_inode_bmap, + .scrub = xfs_scrub_bmap_attr, + }, + { /* inode CoW fork */ + .setup = xfs_scrub_setup_inode_bmap, + .scrub = xfs_scrub_bmap_cow, + }, }; /* This isn't a stable feature, warn once per day. */ |