From 76cb841cb886eef6b3bee341a2266c76578724ad Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 03:02:30 +0200 Subject: Adding upstream version 4.19.249. Signed-off-by: Daniel Baumann --- fs/no-block.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 fs/no-block.c (limited to 'fs/no-block.c') diff --git a/fs/no-block.c b/fs/no-block.c new file mode 100644 index 000000000..6e40e42a4 --- /dev/null +++ b/fs/no-block.c @@ -0,0 +1,23 @@ +/* no-block.c: implementation of routines required for non-BLOCK configuration + * + * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. + * Written by David Howells (dhowells@redhat.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ + +#include +#include + +static int no_blkdev_open(struct inode * inode, struct file * filp) +{ + return -ENODEV; +} + +const struct file_operations def_blk_fops = { + .open = no_blkdev_open, + .llseek = noop_llseek, +}; -- cgit v1.2.3