aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3')
-rw-r--r--fs/ext3/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index ffbbc65e3f68..7f920b7263a4 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -3107,7 +3107,7 @@ out_brelse:
3107 * `stuff()' is running, and the new i_size will be lost. Plus the inode 3107 * `stuff()' is running, and the new i_size will be lost. Plus the inode
3108 * will no longer be on the superblock's dirty inode list. 3108 * will no longer be on the superblock's dirty inode list.
3109 */ 3109 */
3110int ext3_write_inode(struct inode *inode, int wait) 3110int ext3_write_inode(struct inode *inode, struct writeback_control *wbc)
3111{ 3111{
3112 if (current->flags & PF_MEMALLOC) 3112 if (current->flags & PF_MEMALLOC)
3113 return 0; 3113 return 0;
@@ -3118,7 +3118,7 @@ int ext3_write_inode(struct inode *inode, int wait)
3118 return -EIO; 3118 return -EIO;
3119 } 3119 }
3120 3120
3121 if (!wait) 3121 if (wbc->sync_mode != WB_SYNC_ALL)
3122 return 0; 3122 return 0;
3123 3123
3124 return ext3_force_commit(inode->i_sb); 3124 return ext3_force_commit(inode->i_sb);