| To: | Brian Foster <bfoster@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH v7 07/10] xfs: add inode id filtering to eofblocks scan |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Thu, 8 Nov 2012 07:33:33 +1100 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1352308874-64562-2-git-send-email-bfoster@xxxxxxxxxx> |
| References: | <1352213447-59791-1-git-send-email-bfoster@xxxxxxxxxx> <1352308874-64562-1-git-send-email-bfoster@xxxxxxxxxx> <1352308874-64562-2-git-send-email-bfoster@xxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Wed, Nov 07, 2012 at 12:21:13PM -0500, Brian Foster wrote:
> 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@xxxxxxxxxx>
> Reviewed-by: Mark Tinguely <tinguely@xxxxxxx>
> ---
>
> v7:
> - Separate padding into two fields to explicitly handle alignment
> requirements.
> - Fix up style of flags defines.
>
> fs/xfs/xfs_fs.h | 14 ++++++++++++--
> fs/xfs/xfs_icache.c | 22 ++++++++++++++++++++++
> fs/xfs/xfs_ioctl.c | 3 ++-
> 3 files changed, 36 insertions(+), 3 deletions(-)
>
> diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/xfs_fs.h
> index 26ff43a..7113564 100644
> --- a/fs/xfs/xfs_fs.h
> +++ b/fs/xfs/xfs_fs.h
> @@ -345,13 +345,23 @@ typedef struct xfs_error_injection {
> struct xfs_eofblocks {
> __u32 eof_version;
> __u32 eof_flags;
> - __u64 pad[15];
> + uid_t eof_uid;
> + gid_t eof_gid;
> + prid_t eof_prid;
> + __u32 pad32;
> + __u64 pad64[13];
> };
Looks good.
Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
--
Dave Chinner
david@xxxxxxxxxxxxx
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/2] xfs: add CRC infrastructure, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH v7 09/10] xfs: add minimum file size filtering to eofblocks scan, Dave Chinner |
| Previous by Thread: | [PATCH v7 07/10] xfs: add inode id filtering to eofblocks scan, Brian Foster |
| Next by Thread: | Re: [PATCH v6 00/10] speculative preallocation inode tracking, Ben Myers |
| Indexes: | [Date] [Thread] [Top] [All Lists] |