X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=fs%2Fblock_dev.c;h=c7e4163ede87f3370a235bdb929cf26e5cd487e8;hb=be5e32fc2e4b23ab443213f0c1b01cbc7ba645dc;hp=897ee0503932fbbf7adc88b0fd27591576696160;hpb=7f9f44308c8993c9ab8078d174dad34bea3e82d7;p=karo-tx-linux.git diff --git a/fs/block_dev.c b/fs/block_dev.c index 897ee0503932..c7e4163ede87 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -152,7 +152,8 @@ blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t offset) struct inode *inode = file->f_mapping->host; return __blockdev_direct_IO(iocb, inode, I_BDEV(inode), iter, offset, - blkdev_get_block, NULL, NULL, 0); + blkdev_get_block, NULL, NULL, + DIO_SKIP_DIO_COUNT); } int __sync_blockdev(struct block_device *bdev, int wait) @@ -1716,7 +1717,7 @@ struct block_device *lookup_bdev(const char *pathname) if (error) return ERR_PTR(error); - inode = path.dentry->d_inode; + inode = d_backing_inode(path.dentry); error = -ENOTBLK; if (!S_ISBLK(inode->i_mode)) goto fail;