diff options
author | Brian Foster <bfoster@redhat.com> | 2014-07-24 19:40:22 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-07-24 19:40:22 +1000 |
commit | 5400da7dc0862d73523691038c044535f518a57f (patch) | |
tree | 574a664859a18888f8d3d6cf2b108c8c61d76736 /fs/xfs/xfs_icache.h | |
parent | 2451337dd043901b5270b7586942abe564443e3d (diff) | |
download | op-kernel-dev-5400da7dc0862d73523691038c044535f518a57f.zip op-kernel-dev-5400da7dc0862d73523691038c044535f518a57f.tar.gz |
xfs: add scan owner field to xfs_eofblocks
From: Brian Foster <bfoster@redhat.com>
The scan owner field represents an optional inode number that is
responsible for the current scan. The purpose is to identify that an
inode is under iolock and as such, the iolock shouldn't be attempted
when trimming eofblocks. This is an internal only field.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_icache.h')
-rw-r--r-- | fs/xfs/xfs_icache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_icache.h b/fs/xfs/xfs_icache.h index 6250430..98687af 100644 --- a/fs/xfs/xfs_icache.h +++ b/fs/xfs/xfs_icache.h @@ -27,6 +27,7 @@ struct xfs_eofblocks { kgid_t eof_gid; prid_t eof_prid; __u64 eof_min_file_size; + xfs_ino_t eof_scan_owner; }; #define SYNC_WAIT 0x0001 /* wait for i/o to complete */ @@ -84,6 +85,7 @@ xfs_fs_eofblocks_from_user( dst->eof_flags = src->eof_flags; dst->eof_prid = src->eof_prid; dst->eof_min_file_size = src->eof_min_file_size; + dst->eof_scan_owner = NULLFSINO; dst->eof_uid = INVALID_UID; if (src->eof_flags & XFS_EOF_FLAGS_UID) { |