]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: support ability to wait on new inodes
authorBrian Foster <bfoster@redhat.com>
Wed, 26 Apr 2017 15:30:39 +0000 (08:30 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 28 Apr 2017 15:11:08 +0000 (08:11 -0700)
commitb65019cfa21f6390ac50f1ec4feabf3efdf336cd
tree75e7bd77fba23d4d0ab39659d3fe6b723d46717c
parent5a9c7a837d9d8877a02ff9a000320bbb2d5cd6dd
xfs: support ability to wait on new inodes

Inodes that are inserted into the perag tree but still under
construction are flagged with the XFS_INEW bit. Most contexts either
skip such inodes when they are encountered or have the ability to
handle them.

The runtime quotaoff sequence introduces a context that must wait
for construction of such inodes to correctly ensure that all dquots
in the fs are released. In anticipation of this, support the ability
to wait on new inodes. Wake the appropriate bit when XFS_INEW is
cleared.

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>
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.h