]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: make xfs_inode_set_eofblocks_tag cheaper for the common case
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Sep 2016 01:09:48 +0000 (11:09 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 Sep 2016 01:09:48 +0000 (11:09 +1000)
commitd09367cf0ba7e4e2ff64d59c6957b5ad38b9d980
tree904f32368131bdff904563606ac31952ddc08d1a
parentdfde1ee99d51f65c4b6655a6d4249ea4d355e303
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>
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.h