Skip to content

Commit

Permalink
switch omfs to simple_fsync()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 12, 2009
1 parent 90de066 commit bea6b64
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions fs/omfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down Expand Up @@ -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,
};

Expand Down

0 comments on commit bea6b64

Please sign in to comment.