From 94218f683c0e04e7f7c10ea71c721a614233eb96 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 29 Jun 2010 15:05:38 -0700 Subject: [PATCH] --- yaml --- r: 200650 b: refs/heads/master c: 46c23d7f520e315dde86881b38ba92ebdf34ced5 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/sysv/ialloc.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 107825e8f435..b0342a08eebe 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 926b1e2ca35ccb3cbe0ea9b322c5330869b95046 +refs/heads/master: 46c23d7f520e315dde86881b38ba92ebdf34ced5 diff --git a/trunk/fs/sysv/ialloc.c b/trunk/fs/sysv/ialloc.c index bbd69bdb0fa8..fcc498ec9b33 100644 --- a/trunk/fs/sysv/ialloc.c +++ b/trunk/fs/sysv/ialloc.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "sysv.h" /* We don't trust the value of @@ -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) @@ -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);