blob: 7e087581be7e0c455923706499408766eb9deeb6 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
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
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#include <linux/fs.h>
Evgeniy Dushistov577a8272006-06-25 05:47:30 -070028
Mike Frysingere5420592008-02-08 04:21:31 -080029#include "ufs_fs.h"
Christoph Hellwigbcd6d4e2007-10-16 23:26:51 -070030#include "ufs.h"
31
Linus Torvalds1da177e2005-04-16 15:20:36 -070032/*
33 * We have mostly NULL's here: the current defaults are ok for
34 * the ufs filesystem.
35 */
36
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080037const struct file_operations ufs_file_operations = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070038 .llseek = generic_file_llseek,
Al Viroaad4f8b2014-04-02 14:33:16 -040039 .read_iter = generic_file_read_iter,
Al Viro81742022014-04-03 03:17:43 -040040 .write_iter = generic_file_write_iter,
Linus Torvalds1da177e2005-04-16 15:20:36 -070041 .mmap = generic_file_mmap,
Jan Kara8f45c332010-05-20 16:00:36 +020042 .open = generic_file_open,
Christoph Hellwig1b061d92010-05-26 17:53:41 +020043 .fsync = generic_file_fsync,
Jens Axboe5ffc4ef2007-06-01 11:49:19 +020044 .splice_read = generic_file_splice_read,
Linus Torvalds1da177e2005-04-16 15:20:36 -070045};