OSDN Git Service

xfs: maintain a sequence count for inode fork manipulations
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Jul 2018 23:51:51 +0000 (16:51 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jul 2018 20:18:09 +0000 (13:18 -0700)
commit745b3f76d1c889d738a1c4537a3c491bc1ecac4d
tree29a159f817cb3779f93f6d9140152da18091bb40
parent9e037cb7972fab5a9f55bca4ebe6e4dbf7e160bc
xfs: maintain a sequence count for inode fork manipulations

Add a simple 32-bit unsigned integer as the sequence count for
modifications to the extent list in the inode fork.  This will be
used to optimize away extent list lookups in the writeback code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_iext_tree.c
fs/xfs/libxfs/xfs_inode_fork.h