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>
Tue, 1 Aug 2023 23:32:35 +0000 (17:32 -0600)
commit3a0be38cc84d05e86f1c7d5b601513f31d3b24fa
tree580990af42c583b7a68e8d2da78ea3ce2df09481
parent44842f647346cac4063b2bb8e9476fad09e363e7
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c