diff options
author | Dave Chinner <[email protected]> | 2022-05-04 11:45:50 +1000 |
---|---|---|
committer | Dave Chinner <[email protected]> | 2022-05-04 11:45:50 +1000 |
commit | b2c28035cea290edbcec697504e5b7a4b1e023e7 (patch) | |
tree | 2fe371632c8f256fe309422aea7110f96ed35233 /lib/test_fortify/write_overflow-memcpy.c | |
parent | c230a4a85bcdbfc1a7415deec6caf04e8fca1301 (diff) |
xfs: hide log iovec alignment constraints
Callers currently have to round out the size of buffers to match the
aligment constraints of log iovecs and xlog_write(). They should not
need to know this detail, so introduce a new function to calculate
the iovec length (for use in ->iop_size implementations). Also
modify xlog_finish_iovec() to round up the length to the correct
alignment so the callers don't need to do this, either.
Convert the only user - inode forks - of this alignment rounding to
use the new interface.
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Allison Henderson <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions