aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r--fs/reiserfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index b8671a54e8ed..d1da94b82d8f 100644
--- a/fs/reiserfs/inode.c
+++ b/fs/reiserfs/inode.c
@@ -1618,7 +1618,7 @@ int reiserfs_encode_fh(struct dentry *dentry, __u32 * data, int *lenp,
1618** to properly mark inodes for datasync and such, but only actually 1618** to properly mark inodes for datasync and such, but only actually
1619** does something when called for a synchronous update. 1619** does something when called for a synchronous update.
1620*/ 1620*/
1621int reiserfs_write_inode(struct inode *inode, int do_sync) 1621int reiserfs_write_inode(struct inode *inode, struct writeback_control *wbc)
1622{ 1622{
1623 struct reiserfs_transaction_handle th; 1623 struct reiserfs_transaction_handle th;
1624 int jbegin_count = 1; 1624 int jbegin_count = 1;
@@ -1630,7 +1630,7 @@ int reiserfs_write_inode(struct inode *inode, int do_sync)
1630 ** inode needs to reach disk for safety, and they can safely be 1630 ** inode needs to reach disk for safety, and they can safely be
1631 ** ignored because the altered inode has already been logged. 1631 ** ignored because the altered inode has already been logged.
1632 */ 1632 */
1633 if (do_sync && !(current->flags & PF_MEMALLOC)) { 1633 if (wbc->sync_mode == WB_SYNC_ALL && !(current->flags & PF_MEMALLOC)) {
1634 reiserfs_write_lock(inode->i_sb); 1634 reiserfs_write_lock(inode->i_sb);
1635 if (!journal_begin(&th, inode->i_sb, jbegin_count)) { 1635 if (!journal_begin(&th, inode->i_sb, jbegin_count)) {
1636 reiserfs_update_sd(&th, inode); 1636 reiserfs_update_sd(&th, inode);