Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200650
b: refs/heads/master
c: 46c23d7
h: refs/heads/master
v: v3
  • Loading branch information
Lubomir Rintel authored and Linus Torvalds committed Jun 29, 2010
1 parent 1ae1777 commit 94218f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 926b1e2ca35ccb3cbe0ea9b322c5330869b95046
refs/heads/master: 46c23d7f520e315dde86881b38ba92ebdf34ced5
6 changes: 5 additions & 1 deletion trunk/fs/sysv/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/buffer_head.h>
#include <linux/writeback.h>
#include "sysv.h"

/* We don't trust the value of
Expand Down Expand Up @@ -139,6 +140,9 @@ struct inode * sysv_new_inode(const struct inode * dir, mode_t mode)
struct inode *inode;
sysv_ino_t ino;
unsigned count;
struct writeback_control wbc = {
.sync_mode = WB_SYNC_NONE
};

inode = new_inode(sb);
if (!inode)
Expand Down Expand Up @@ -168,7 +172,7 @@ struct inode * sysv_new_inode(const struct inode * dir, mode_t mode)
insert_inode_hash(inode);
mark_inode_dirty(inode);

sysv_write_inode(inode, 0); /* ensure inode not allocated again */
sysv_write_inode(inode, &wbc); /* ensure inode not allocated again */
mark_inode_dirty(inode); /* cleared by sysv_write_inode() */
/* That's it. */
unlock_super(sb);
Expand Down

0 comments on commit 94218f6

Please sign in to comment.