]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: attach inodes to the cluster buffer when dirtied
authorDave Chinner <dchinner@redhat.com>
Fri, 4 Sep 2020 19:58:20 +0000 (15:58 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 4 Sep 2020 19:58:20 +0000 (15:58 -0400)
commit2efa10f35fbbc52a8c1ae19f0da84b39589170f9
treed02fc194b2310b1e01fecf97f38069ebb08b8bc3
parent2b8ea8268481db3d3c8bc6e5529497029c64dfdd
xfs: attach inodes to the cluster buffer when dirtied

Source kernel commit: 48d55e2ae3ce837598c073995bbbac5d24a35fe1

Rather than attach inodes to the cluster buffer just when we are
doing IO, attach the inodes to the cluster buffer when they are
dirtied. The means the buffer always carries a list of dirty inodes
that reference it, and we can use that list to make more fundamental
changes to inode writeback that aren't otherwise possible.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_trans.h
libxfs/libxfs_io.h
libxfs/libxfs_priv.h
libxfs/rdwr.c
libxfs/trans.c
libxfs/util.c
libxfs/xfs_trans_inode.c