xref: /openbmc/linux/fs/ufs/file.c (revision 2a598d0b)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  *  linux/fs/ufs/file.c
4  *
5  * Copyright (C) 1998
6  * Daniel Pirkl <daniel.pirkl@email.cz>
7  * Charles University, Faculty of Mathematics and Physics
8  *
9  *  from
10  *
11  *  linux/fs/ext2/file.c
12  *
13  * Copyright (C) 1992, 1993, 1994, 1995
14  * Remy Card (card@masi.ibp.fr)
15  * Laboratoire MASI - Institut Blaise Pascal
16  * Universite Pierre et Marie Curie (Paris VI)
17  *
18  *  from
19  *
20  *  linux/fs/minix/file.c
21  *
22  *  Copyright (C) 1991, 1992  Linus Torvalds
23  *
24  *  ext2 fs regular file handling primitives
25  */
26 
27 #include <linux/fs.h>
28 
29 #include "ufs_fs.h"
30 #include "ufs.h"
31 
32 /*
33  * We have mostly NULL's here: the current defaults are ok for
34  * the ufs filesystem.
35  */
36 
37 const struct file_operations ufs_file_operations = {
38 	.llseek		= generic_file_llseek,
39 	.read_iter	= generic_file_read_iter,
40 	.write_iter	= generic_file_write_iter,
41 	.mmap		= generic_file_mmap,
42 	.open           = generic_file_open,
43 	.fsync		= generic_file_fsync,
44 	.splice_read	= filemap_splice_read,
45 };
46