#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;
{
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);
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);
/*
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)