]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: move the buffer retry logic to xfs_buf.c
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Nov 2020 19:52:42 +0000 (14:52 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 10 Nov 2020 19:52:42 +0000 (14:52 -0500)
Source kernel commit: 664ffb8a429a800c51964b94c15c6a92c8d8334c

Move the buffer retry state machine logic to xfs_buf.c and call it once
from xfs_ioend instead of duplicating it three times for the three kinds
of buffers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_trans_inode.c

index 82716ea27f926840e399656eb9d9236cf53467a0..a392fd293d25bd2d333ac0cb57dc6b557b53c086 100644 (file)
@@ -174,9 +174,9 @@ xfs_trans_log_inode(
 
        /*
         * Always OR in the bits from the ili_last_fields field.  This is to
-        * coordinate with the xfs_iflush() and xfs_iflush_done() routines in
-        * the eventual clearing of the ili_fields bits.  See the big comment in
-        * xfs_iflush() for an explanation of this coordination mechanism.
+        * coordinate with the xfs_iflush() and xfs_buf_inode_iodone() routines
+        * in the eventual clearing of the ili_fields bits.  See the big comment
+        * in xfs_iflush() for an explanation of this coordination mechanism.
         */
        iip->ili_fields |= (flags | iip->ili_last_fields | iversion_flags);
        spin_unlock(&iip->ili_lock);