]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: attach inodes to the cluster buffer when dirtied
authorDave Chinner <dchinner@redhat.com>
Mon, 29 Jun 2020 21:49:18 +0000 (14:49 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 Jul 2020 14:15:08 +0000 (07:15 -0700)
commitecffaeae513ea2a1aed1c5c4ee90a2ab49ce6bb0
treeb5d1923900858dd3e77b725bae8d4a0f666fcc5f
parent0105f0086c4d9bb9701b7b0218b455bc9ebe6588
xfs: attach inodes to the cluster buffer when dirtied

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>
fs/xfs/libxfs/xfs_trans_inode.c
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode_item.c