| * 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 |
| struct file_operations sysv_file_operations = { |
| .llseek = generic_file_llseek, |
| .read = generic_file_read, |
| .write = generic_file_write, |
| .mmap = generic_file_mmap, |
| .sendfile = generic_file_sendfile, |
| 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); |