RDMA/hfi1: Stop using seq_get_buf in _driver_stats_seq_show
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Aug 2021 15:17:11 +0000 (17:17 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 19 Aug 2021 14:39:44 +0000 (11:39 -0300)
commit4b89451d2c3d488b304306f8b2d1afc7c28b4f78
tree6810900d553e4aba2496adcbfd225c41193e0ef6
parent00c85b6576d3a9c9d9f0320a59b1e7b5bd25ade4
RDMA/hfi1: Stop using seq_get_buf in _driver_stats_seq_show

Just use seq_write to copy the stats into the seq_file buffer instead of
poking holes into the seq_file abstraction.

Link: https://lore.kernel.org/r/20210810151711.1795374-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Tested-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/debugfs.c