]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: flush inode inactivation work when compiling usage statistics
authorDarrick J. Wong <djwong@kernel.org>
Fri, 6 Aug 2021 18:05:42 +0000 (11:05 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 9 Aug 2021 17:52:18 +0000 (10:52 -0700)
commit34e6f01b0e9b02b708dff0088bb1fef5ed586b1e
treed52a1533c4aeb640eacc867556e247c1aa2b9fb3
parent03aa2856c66e9b8ea86dfebccc27701e33bfaebb
xfs: flush inode inactivation work when compiling usage statistics

Users have come to expect that the space accounting information in
statfs and getquota reports are fairly accurate.  Now that we inactivate
inodes from a background queue, these numbers can be thrown off by
whatever resources are singly-owned by the inodes in the queue.  Flush
the pending inactivations when userspace asks for a space usage report.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_super.c