diff options
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r-- | fs/reiserfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 2df0f5c7c60b..0d651f980a8d 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -1615,7 +1615,7 @@ int reiserfs_encode_fh(struct dentry *dentry, __u32 * data, int *lenp, | |||
1615 | ** to properly mark inodes for datasync and such, but only actually | 1615 | ** to properly mark inodes for datasync and such, but only actually |
1616 | ** does something when called for a synchronous update. | 1616 | ** does something when called for a synchronous update. |
1617 | */ | 1617 | */ |
1618 | int reiserfs_write_inode(struct inode *inode, int do_sync) | 1618 | int reiserfs_write_inode(struct inode *inode, struct writeback_control *wbc) |
1619 | { | 1619 | { |
1620 | struct reiserfs_transaction_handle th; | 1620 | struct reiserfs_transaction_handle th; |
1621 | int jbegin_count = 1; | 1621 | int jbegin_count = 1; |
@@ -1627,7 +1627,7 @@ int reiserfs_write_inode(struct inode *inode, int do_sync) | |||
1627 | ** inode needs to reach disk for safety, and they can safely be | 1627 | ** inode needs to reach disk for safety, and they can safely be |
1628 | ** ignored because the altered inode has already been logged. | 1628 | ** ignored because the altered inode has already been logged. |
1629 | */ | 1629 | */ |
1630 | if (do_sync && !(current->flags & PF_MEMALLOC)) { | 1630 | if (wbc->sync_mode == WB_SYNC_ALL && !(current->flags & PF_MEMALLOC)) { |
1631 | reiserfs_write_lock(inode->i_sb); | 1631 | reiserfs_write_lock(inode->i_sb); |
1632 | if (!journal_begin(&th, inode->i_sb, jbegin_count)) { | 1632 | if (!journal_begin(&th, inode->i_sb, jbegin_count)) { |
1633 | reiserfs_update_sd(&th, inode); | 1633 | reiserfs_update_sd(&th, inode); |