| * Copyright (C) 1991, 1992 Linus Torvalds |
| * Copyright (C) 1993 Pascal Haible, Bruno Haible |
| * Copyright (C) 1993 Bruno Haible |
| * SystemV/Coherent regular file handling primitives |
| * We have mostly NULLs here: the current defaults are OK for |
| const struct file_operations sysv_file_operations = { |
| .llseek = generic_file_llseek, |
| .aio_read = generic_file_aio_read, |
| .aio_write = generic_file_aio_write, |
| .mmap = generic_file_mmap, |
| .splice_read = generic_file_splice_read, |
| const struct inode_operations sysv_file_inode_operations = { |
| .truncate = sysv_truncate, |
| int sysv_sync_file(struct file * file, struct dentry *dentry, int datasync) |
| struct inode *inode = dentry->d_inode; |
| err = sync_mapping_buffers(inode->i_mapping); |
| if (!(inode->i_state & I_DIRTY)) |
| if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) |
| err |= sysv_sync_inode(inode); |