blob: d5320ff23faf28c38678cd12dfb25f1db24ca4d4 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/fs/minix/file.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 *
6 * minix regular file handling primitives
7 */
8
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#include "minix.h"
10
11/*
12 * We have mostly NULLs here: the current defaults are OK for
13 * the minix filesystem.
14 */
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080015const struct file_operations minix_file_operations = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 .llseek = generic_file_llseek,
Badari Pulavarty543ade12006-09-30 23:28:48 -070017 .read = do_sync_read,
18 .aio_read = generic_file_aio_read,
19 .write = do_sync_write,
20 .aio_write = generic_file_aio_write,
Linus Torvalds1da177e2005-04-16 15:20:36 -070021 .mmap = generic_file_mmap,
Christoph Hellwig1b061d92010-05-26 17:53:41 +020022 .fsync = generic_file_fsync,
Jens Axboe5ffc4ef2007-06-01 11:49:19 +020023 .splice_read = generic_file_splice_read,
Linus Torvalds1da177e2005-04-16 15:20:36 -070024};
25
Arjan van de Ven92e1d5b2007-02-12 00:55:39 -080026const struct inode_operations minix_file_inode_operations = {
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 .truncate = minix_truncate,
28 .getattr = minix_getattr,
29};