diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-07 15:44:50 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:13 -0400 |
commit | bea6b64c277f0824cdaea6190209b26a164419d6 (patch) | |
tree | 0eebdf31c3faf13d5ed7cc81f9e5e253dd4afe54 /fs/omfs | |
parent | 90de066443a8632bb42fed0a8216313d7da07aba (diff) | |
download | talos-obmc-linux-bea6b64c277f0824cdaea6190209b26a164419d6.tar.gz talos-obmc-linux-bea6b64c277f0824cdaea6190209b26a164419d6.zip |
switch omfs to simple_fsync()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/omfs')
-rw-r--r-- | fs/omfs/file.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/fs/omfs/file.c b/fs/omfs/file.c index 834b2331f6b3..d17e774eaf45 100644 --- a/fs/omfs/file.c +++ b/fs/omfs/file.c @@ -11,21 +11,6 @@ #include <linux/mpage.h> #include "omfs.h" -static int omfs_sync_file(struct file *file, struct dentry *dentry, - int datasync) -{ - struct inode *inode = dentry->d_inode; - int err; - - err = sync_mapping_buffers(inode->i_mapping); - if (!(inode->i_state & I_DIRTY)) - return err; - if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) - return err; - err |= omfs_sync_inode(inode); - return err ? -EIO : 0; -} - static u32 omfs_max_extents(struct omfs_sb_info *sbi, int offset) { return (sbi->s_sys_blocksize - offset - @@ -344,7 +329,7 @@ struct file_operations omfs_file_operations = { .aio_read = generic_file_aio_read, .aio_write = generic_file_aio_write, .mmap = generic_file_mmap, - .fsync = omfs_sync_file, + .fsync = simple_fsync, .splice_read = generic_file_splice_read, }; |