summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_qm_syscalls.c
diff options
context:
space:
mode:
authorBrian Foster2017-04-26 17:30:39 +0200
committerDarrick J. Wong2017-04-28 17:11:08 +0200
commitae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5 (patch)
treea592c82c0976a79b516884d2f08f7ddbe938c149 /fs/xfs/xfs_qm_syscalls.c
parentxfs: support ability to wait on new inodes (diff)
downloadkernel-qcow2-linux-ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5.tar.gz
kernel-qcow2-linux-ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5.tar.xz
kernel-qcow2-linux-ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5.zip
xfs: update ag iterator to support wait on new inodes
The AG inode iterator currently skips new inodes as such inodes are inserted into the inode radix tree before they are fully constructed. Certain contexts require the ability to wait on the construction of new inodes, however. The fs-wide dquot release from the quotaoff sequence is an example of this. Update the AG inode iterator to support the ability to wait on inodes flagged with XFS_INEW upon request. Create a new xfs_inode_ag_iterator_flags() interface and support a set of iteration flags to modify the iteration behavior. When the XFS_AGITER_INEW_WAIT flag is set, include XFS_INEW flags in the radix tree inode lookup and wait on them before the callback is executed. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_qm_syscalls.c')
0 files changed, 0 insertions, 0 deletions