Skip to content

Commit c96b8b2

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent 45cec0d commit c96b8b2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fs/iomap/direct-io.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define IOMAP_DIO_WRITE_THROUGH (1U << 28)
2323
#define IOMAP_DIO_NEED_SYNC (1U << 29)
2424
#define IOMAP_DIO_WRITE (1U << 30)
25-
#define IOMAP_DIO_DIRTY (1U << 31)
25+
#define IOMAP_DIO_USER_BACKED (1U << 31)
2626

2727
struct iomap_dio {
2828
struct kiocb *iocb;
@@ -215,7 +215,7 @@ static void __iomap_dio_bio_end_io(struct bio *bio, bool inline_completion)
215215
{
216216
struct iomap_dio *dio = bio->bi_private;
217217

218-
if (dio->flags & IOMAP_DIO_DIRTY) {
218+
if (dio->flags & IOMAP_DIO_USER_BACKED) {
219219
bio_check_pages_dirty(bio);
220220
} else {
221221
bio_release_pages(bio, false);
@@ -333,7 +333,7 @@ static ssize_t iomap_dio_bio_iter_one(struct iomap_iter *iter,
333333

334334
if (dio->flags & IOMAP_DIO_WRITE)
335335
task_io_account_write(ret);
336-
else if (dio->flags & IOMAP_DIO_DIRTY)
336+
else if (dio->flags & IOMAP_DIO_USER_BACKED)
337337
bio_set_pages_dirty(bio);
338338

339339
/*
@@ -679,7 +679,7 @@ __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
679679
goto out_free_dio;
680680

681681
if (user_backed_iter(iter))
682-
dio->flags |= IOMAP_DIO_DIRTY;
682+
dio->flags |= IOMAP_DIO_USER_BACKED;
683683

684684
ret = kiocb_write_and_wait(iocb, iomi.len);
685685
if (ret)

0 commit comments

Comments
 (0)