Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iomap: rename IOMAP_DIO_DIRTY to IOMAP_DIO_USER_BACKED

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>

authored by

Christoph Hellwig and committed by
Jens Axboe
c96b8b22 45cec0de

+4 -4
+4 -4
fs/iomap/direct-io.c
··· 22 22 #define IOMAP_DIO_WRITE_THROUGH (1U << 28) 23 23 #define IOMAP_DIO_NEED_SYNC (1U << 29) 24 24 #define IOMAP_DIO_WRITE (1U << 30) 25 - #define IOMAP_DIO_DIRTY (1U << 31) 25 + #define IOMAP_DIO_USER_BACKED (1U << 31) 26 26 27 27 struct iomap_dio { 28 28 struct kiocb *iocb; ··· 215 215 { 216 216 struct iomap_dio *dio = bio->bi_private; 217 217 218 - if (dio->flags & IOMAP_DIO_DIRTY) { 218 + if (dio->flags & IOMAP_DIO_USER_BACKED) { 219 219 bio_check_pages_dirty(bio); 220 220 } else { 221 221 bio_release_pages(bio, false); ··· 333 333 334 334 if (dio->flags & IOMAP_DIO_WRITE) 335 335 task_io_account_write(ret); 336 - else if (dio->flags & IOMAP_DIO_DIRTY) 336 + else if (dio->flags & IOMAP_DIO_USER_BACKED) 337 337 bio_set_pages_dirty(bio); 338 338 339 339 /* ··· 679 679 goto out_free_dio; 680 680 681 681 if (user_backed_iter(iter)) 682 - dio->flags |= IOMAP_DIO_DIRTY; 682 + dio->flags |= IOMAP_DIO_USER_BACKED; 683 683 684 684 ret = kiocb_write_and_wait(iocb, iomi.len); 685 685 if (ret)