]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: track delayed allocation reservations across the filesystem
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 19 Jul 2019 20:05:30 +0000 (16:05 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 19 Jul 2019 20:05:30 +0000 (16:05 -0400)
commit14ce768035df907807eee93a1c4734c7bdecfe51
tree06e84dd0ce3764a02c175e7b9aa37b7685054c9e
parent982433c3d5ac9867384ebaad94b9c59fcc0a2abf
xfs: track delayed allocation reservations across the filesystem

Source kernel commit: 9fe82b8c422b5d9e9011bc08e27b9044936d945f

Add a percpu counter to track the number of blocks directly reserved for
delayed allocations on the data device.  This counter (in contrast to
i_delayed_blks) does not track allocated CoW staging extents or anything
going on with the realtime device.  It will be used in the upcoming
summary counter scrub function to check the free block counts without
having to freeze the filesystem or walk all the inodes to find the
delayed allocations.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/xfs_bmap.c