summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorChristoph Hellwig2016-09-19 03:09:48 +0200
committerDave Chinner2016-09-19 03:09:48 +0200
commit85a6e764ff5485dfe1edf5e47290e4d32ea866d5 (patch)
tree904f32368131bdff904563606ac31952ddc08d1a /fs/xfs/xfs_inode.h
parentxfs: factor our a helper to calculate the EOF alignment (diff)
downloadkernel-qcow2-linux-85a6e764ff5485dfe1edf5e47290e4d32ea866d5.tar.gz
kernel-qcow2-linux-85a6e764ff5485dfe1edf5e47290e4d32ea866d5.tar.xz
kernel-qcow2-linux-85a6e764ff5485dfe1edf5e47290e4d32ea866d5.zip
xfs: make xfs_inode_set_eofblocks_tag cheaper for the common case
For long growing file writes we will usually already have the eofblocks tag set when adding more speculative preallocations. Add a flag in the inode to allow us to skip the the fairly expensive AG-wide spinlocks and multiple radix tree operations in that case. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
index e1a411e08f00..8f30d2533b48 100644
--- a/fs/xfs/xfs_inode.h
+++ b/fs/xfs/xfs_inode.h
@@ -216,6 +216,7 @@ xfs_get_initial_prid(struct xfs_inode *dp)
#define __XFS_IPINNED_BIT 8 /* wakeup key for zero pin count */
#define XFS_IPINNED (1 << __XFS_IPINNED_BIT)
#define XFS_IDONTCACHE (1 << 9) /* don't cache the inode long term */
+#define XFS_IEOFBLOCKS (1 << 10)/* has the preallocblocks tag set */
/*
* Per-lifetime flags need to be reset when re-using a reclaimable inode during