Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212758
b: refs/heads/master
c: 4c38881
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara authored and Joel Becker committed Sep 10, 2010
1 parent 000a0f3 commit 93c9737
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83fd9c7f65634ac440a6b9b7a63ba562f213ac60
refs/heads/master: 4c38881f87c21ada5609a4065cb10e3e74da0d6e
10 changes: 0 additions & 10 deletions trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@

#include "buffer_head_io.h"

static int ocfs2_sync_inode(struct inode *inode)
{
filemap_fdatawrite(inode->i_mapping);
return sync_mapping_buffers(inode->i_mapping);
}

static int ocfs2_init_file_private(struct inode *inode, struct file *file)
{
struct ocfs2_file_private *fp;
Expand Down Expand Up @@ -187,10 +181,6 @@ static int ocfs2_sync_file(struct file *file, int datasync)
mlog_entry("(0x%p, 0x%p, %d, '%.*s')\n", file, dentry, datasync,
dentry->d_name.len, dentry->d_name.name);

err = ocfs2_sync_inode(dentry->d_inode);
if (err)
goto bail;

if (datasync && !(inode->i_state & I_DIRTY_DATASYNC)) {
/*
* We still have to flush drive's caches to get data to the
Expand Down

0 comments on commit 93c9737

Please sign in to comment.