]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: remove unnecessary shutdown check from xfs_iflush()
authorBrian Foster <bfoster@redhat.com>
Mon, 10 Aug 2020 20:32:05 +0000 (16:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2020 20:32:05 +0000 (16:32 -0400)
commit820c654878dbef70ae81db0b8ccefe8b06cb9cfa
tree1d3d18e6d8fbd473900b535b6c7f4a48a52781d9
parent8d431a3b99c9cadca7a6d757a2f5f741c5b9c9fe
xfs: remove unnecessary shutdown check from xfs_iflush()

Source kernel commit: 15fab3b9be2255be70ba1c598a11622fa03c9d5e

The shutdown check in xfs_iflush() duplicates checks down in the
buffer code. If the fs is shut down, xfs_trans_read_buf_map() always
returns an error and falls into the same error path. Remove the
unnecessary check along with the warning in xfs_imap_to_bp()
that generates excessive noise in the log if the fs is shut down.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-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_inode_buf.c