|
@@ -272,13 +272,15 @@ xfs_readsb(
|
|
|
buf_ops = NULL;
|
|
|
|
|
|
/*
|
|
|
- * Allocate a (locked) buffer to hold the superblock.
|
|
|
- * This will be kept around at all times to optimize
|
|
|
- * access to the superblock.
|
|
|
+ * Allocate a (locked) buffer to hold the superblock. This will be kept
|
|
|
+ * around at all times to optimize access to the superblock. Therefore,
|
|
|
+ * set XBF_NO_IOACCT to make sure it doesn't hold the buftarg count
|
|
|
+ * elevated.
|
|
|
*/
|
|
|
reread:
|
|
|
error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR,
|
|
|
- BTOBB(sector_size), 0, &bp, buf_ops);
|
|
|
+ BTOBB(sector_size), XBF_NO_IOACCT, &bp,
|
|
|
+ buf_ops);
|
|
|
if (error) {
|
|
|
if (loud)
|
|
|
xfs_warn(mp, "SB validate failed with error %d.", error);
|