Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185433
b: refs/heads/master
c: 96a1cc7
h: refs/heads/master
i:
  185431: ead4a02
v: v3
  • Loading branch information
Wengang Wang authored and Joel Becker committed Feb 26, 2010
1 parent ccbf5ff commit 5562112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: b89c54282db0c8634a2d2dc200f196d571750ce5
refs/heads/master: 96a1cc731adb28dc4feb71701091b80e67d486a7
6 changes: 2 additions & 4 deletions trunk/fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,8 @@ static int ocfs2_prepare_inode_for_write(struct dentry *dentry,
&meta_level);
if (has_refcount)
*has_refcount = 1;
if (direct_io)
*direct_io = 0;
}

if (ret < 0) {
Expand All @@ -1859,10 +1861,6 @@ static int ocfs2_prepare_inode_for_write(struct dentry *dentry,
break;
}

if (has_refcount && *has_refcount == 1) {
*direct_io = 0;
break;
}
/*
* Allowing concurrent direct writes means
* i_size changes wouldn't be synchronized, so
Expand Down

0 comments on commit 5562112

Please sign in to comment.