diff options
author | Brian Foster <bfoster@redhat.com> | 2012-11-07 12:21:13 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-08 16:29:14 -0500 |
commit | 3e3f9f5863548e870edfcc72e7617ac8ddcad44a (patch) | |
tree | ab1952acea4c3cad7048d6c168987ba7b7e73552 /fs/xfs/xfs_ioctl.c | |
parent | 8ca149de80478441352a8622ea15fae7de703ced (diff) |
xfs: add inode id filtering to eofblocks scan
Support inode ID filtering in the eofblocks scan. The caller must
set the associated XFS_EOF_FLAGS_*ID bit and ID field.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 5b20ab0b4f9d..c1c3ef88a260 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c | |||
@@ -1615,7 +1615,8 @@ xfs_file_ioctl( | |||
1615 | if (eofb.eof_flags & ~XFS_EOF_FLAGS_VALID) | 1615 | if (eofb.eof_flags & ~XFS_EOF_FLAGS_VALID) |
1616 | return -XFS_ERROR(EINVAL); | 1616 | return -XFS_ERROR(EINVAL); |
1617 | 1617 | ||
1618 | if (memchr_inv(eofb.pad, 0, sizeof(eofb.pad))) | 1618 | if (memchr_inv(&eofb.pad32, 0, sizeof(eofb.pad32)) || |
1619 | memchr_inv(eofb.pad64, 0, sizeof(eofb.pad64))) | ||
1619 | return -XFS_ERROR(EINVAL); | 1620 | return -XFS_ERROR(EINVAL); |
1620 | 1621 | ||
1621 | error = xfs_icache_free_eofblocks(mp, &eofb); | 1622 | error = xfs_icache_free_eofblocks(mp, &eofb); |