direct-io: only inc/dec inode->i_dio_count for file systems
[firefly-linux-kernel-4.4.55.git] / fs / block_dev.c
index 85f5c85ec91c050818495c49c1e4a2a669c14322..66738e403f970977db5d56fa256612529da14101 100644 (file)
@@ -172,7 +172,7 @@ blkdev_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov,
        struct inode *inode = file->f_mapping->host;
 
        return __blockdev_direct_IO(rw, iocb, inode, I_BDEV(inode), iov, offset,
-                                   nr_segs, blkdev_get_block, NULL, NULL, 0);
+                                   nr_segs, blkdev_get_block, NULL, NULL, DIO_SKIP_DIO_COUNT);
 }
 
 int __sync_blockdev(struct block_device *bdev, int wait)