]> git.ipfire.org Git - people/ms/linux.git/commit - fs/xfs/xfs_buf.h
xfs: reuse _xfs_buf_read for re-reading the superblock
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Sep 2020 17:55:47 +0000 (10:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 16 Sep 2020 03:52:39 +0000 (20:52 -0700)
commit26e328759b9bc18329752a75762c059e74a23146
tree6c5ae2ede1500643e90804b2ba30336a1c1554d2
parentb3f8e08ca815ef372a572d9d94f1c96941c4d93b
xfs: reuse _xfs_buf_read for re-reading the superblock

Instead of poking deeply into buffer cache internals when re-reading the
superblock during log recovery just generalize _xfs_buf_read and use it
there.  Note that we don't have to explicitly set up the ops as they
must be set from the initial read.

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>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_log_recover.c