Message ID | x49y47h6cg2.fsf@segfault.boston.devel.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/direct-io.c b/fs/direct-io.c index 4720377..f66754e 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -639,8 +639,7 @@ static int get_more_blocks(struct dio *dio, struct dio_submit *sdio, */ create = dio->rw & WRITE; if (dio->flags & DIO_SKIP_HOLES) { - if (sdio->block_in_file < (i_size_read(dio->inode) >> - sdio->blkbits)) + if (fs_startblk < fs_count) create = 0; }