]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iomap: rename IOMAP_DIO_DIRTY to IOMAP_DIO_USER_BACKED
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jan 2026 05:53:43 +0000 (06:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jan 2026 12:16:40 +0000 (05:16 -0700)
Match the more descriptive iov_iter terminology instead of encoding
what we do with them for reads only.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/direct-io.c

index d4d52775ce256f16c96818d54e92ce615003dbcf..eca7adda595a3c794d0e5422be1736fc4771c7dc 100644 (file)
@@ -22,7 +22,7 @@
 #define IOMAP_DIO_WRITE_THROUGH        (1U << 28)
 #define IOMAP_DIO_NEED_SYNC    (1U << 29)
 #define IOMAP_DIO_WRITE                (1U << 30)
-#define IOMAP_DIO_DIRTY                (1U << 31)
+#define IOMAP_DIO_USER_BACKED  (1U << 31)
 
 struct iomap_dio {
        struct kiocb            *iocb;
@@ -215,7 +215,7 @@ static void __iomap_dio_bio_end_io(struct bio *bio, bool inline_completion)
 {
        struct iomap_dio *dio = bio->bi_private;
 
-       if (dio->flags & IOMAP_DIO_DIRTY) {
+       if (dio->flags & IOMAP_DIO_USER_BACKED) {
                bio_check_pages_dirty(bio);
        } else {
                bio_release_pages(bio, false);
@@ -333,7 +333,7 @@ static ssize_t iomap_dio_bio_iter_one(struct iomap_iter *iter,
 
        if (dio->flags & IOMAP_DIO_WRITE)
                task_io_account_write(ret);
-       else if (dio->flags & IOMAP_DIO_DIRTY)
+       else if (dio->flags & IOMAP_DIO_USER_BACKED)
                bio_set_pages_dirty(bio);
 
        /*
@@ -679,7 +679,7 @@ __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
                        goto out_free_dio;
 
                if (user_backed_iter(iter))
-                       dio->flags |= IOMAP_DIO_DIRTY;
+                       dio->flags |= IOMAP_DIO_USER_BACKED;
 
                ret = kiocb_write_and_wait(iocb, iomi.len);
                if (ret)