xfs: introduce xlog_write_full()
authorDave Chinner <dchinner@redhat.com>
Thu, 21 Apr 2022 00:36:05 +0000 (10:36 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 21 Apr 2022 00:36:05 +0000 (10:36 +1000)
commitdb357078b0423e0a86a633780cbca3f01c54885d
tree1bc14f484d2b159fac2c66b6481c26a888202ce3
parentdecb545fc081a1f03d4216831afb82482e8b6342
xfs: introduce xlog_write_full()

Introduce an optimised version of xlog_write() that is used when the
entire write will fit in a single iclog. This greatly simplifies the
implementation of writing a log vector chain into an iclog, and sets
the ground work for a much more understandable xlog_write()
implementation.

This incorporates some factoring and simplifications proposed by
Christoph Hellwig.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log.c