Searched hist:"1 aff5696f3e03099a4a3e9a0d965ef9b345265a6" (Results 1 – 2 of 2) sorted by relevance
/linux/fs/xfs/ |
H A D | xfs_trans_buf.c | diff 1aff5696f3e03099a4a3e9a0d965ef9b345265a6 Thu Oct 18 08:20:30 CEST 2018 Darrick J. Wong <darrick.wong@oracle.com> xfs: always assign buffer verifiers when one is provided
If a caller supplies buffer ops when trying to read a buffer and the buffer doesn't already have buf ops assigned, ensure that the ops are assigned to the buffer and the verifier is run on that buffer.
Note that current XFS code is careful to assign buffer ops after a xfs_{trans_,}buf_read call in which ops were not supplied. However, we should apply ops defensively in case there is ever a coding mistake; and an upcoming repair patch will need to be able to read a buffer without assigning buf ops.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
|
H A D | xfs_buf.h | diff 1aff5696f3e03099a4a3e9a0d965ef9b345265a6 Thu Oct 18 08:20:30 CEST 2018 Darrick J. Wong <darrick.wong@oracle.com> xfs: always assign buffer verifiers when one is provided
If a caller supplies buffer ops when trying to read a buffer and the buffer doesn't already have buf ops assigned, ensure that the ops are assigned to the buffer and the verifier is run on that buffer.
Note that current XFS code is careful to assign buffer ops after a xfs_{trans_,}buf_read call in which ops were not supplied. However, we should apply ops defensively in case there is ever a coding mistake; and an upcoming repair patch will need to be able to read a buffer without assigning buf ops.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
|