iomap: treat a write through cache the same as FUA
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Jul 2023 19:43:10 +0000 (13:43 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jul 2023 16:33:49 +0000 (10:33 -0600)
commitbc03b828501d1f35b0d698ca9ac92b97d39ec031
tree5627f44d0b3fe3db90565a3291dc6a6276ca76a8
parent191427c5ea760edefc77de6f25619e78ac595ca0
iomap: treat a write through cache the same as FUA

Whether we have a write back cache and are using FUA or don't have
a write back cache at all is the same situation. Treat them the same.

This makes the IOMAP_DIO_WRITE_FUA name a bit misleading, as we have
two cases that provide stable writes:

1) Volatile write cache with FUA writes
2) Normal write without a volatile write cache

Rename that flag to IOMAP_DIO_STABLE_WRITE to make that clearer, and
update some of the FUA comments as well.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c