overlayfs: Implement splice-read
[linux-block.git] / fs / no-block.c
CommitLineData
2874c5fd 1// SPDX-License-Identifier: GPL-2.0-or-later
9361401e
DH
2/* no-block.c: implementation of routines required for non-BLOCK configuration
3 *
4 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
9361401e
DH
6 */
7
8#include <linux/kernel.h>
9#include <linux/fs.h>
10
11static int no_blkdev_open(struct inode * inode, struct file * filp)
12{
13 return -ENODEV;
14}
15
16const struct file_operations def_blk_fops = {
17 .open = no_blkdev_open,
6038f373 18 .llseek = noop_llseek,
9361401e 19};