diff options
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 9374d374a264..e8f795f978aa 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -256,8 +256,8 @@ int ocfs2_update_inode_atime(struct inode *inode, | |||
256 | goto out; | 256 | goto out; |
257 | } | 257 | } |
258 | 258 | ||
259 | ret = ocfs2_journal_access(handle, inode, bh, | 259 | ret = ocfs2_journal_access_di(handle, inode, bh, |
260 | OCFS2_JOURNAL_ACCESS_WRITE); | 260 | OCFS2_JOURNAL_ACCESS_WRITE); |
261 | if (ret) { | 261 | if (ret) { |
262 | mlog_errno(ret); | 262 | mlog_errno(ret); |
263 | goto out_commit; | 263 | goto out_commit; |
@@ -353,8 +353,8 @@ static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb, | |||
353 | goto out; | 353 | goto out; |
354 | } | 354 | } |
355 | 355 | ||
356 | status = ocfs2_journal_access(handle, inode, fe_bh, | 356 | status = ocfs2_journal_access_di(handle, inode, fe_bh, |
357 | OCFS2_JOURNAL_ACCESS_WRITE); | 357 | OCFS2_JOURNAL_ACCESS_WRITE); |
358 | if (status < 0) { | 358 | if (status < 0) { |
359 | mlog_errno(status); | 359 | mlog_errno(status); |
360 | goto out_commit; | 360 | goto out_commit; |
@@ -590,8 +590,8 @@ restarted_transaction: | |||
590 | /* reserve a write to the file entry early on - that we if we | 590 | /* reserve a write to the file entry early on - that we if we |
591 | * run out of credits in the allocation path, we can still | 591 | * run out of credits in the allocation path, we can still |
592 | * update i_size. */ | 592 | * update i_size. */ |
593 | status = ocfs2_journal_access(handle, inode, bh, | 593 | status = ocfs2_journal_access_di(handle, inode, bh, |
594 | OCFS2_JOURNAL_ACCESS_WRITE); | 594 | OCFS2_JOURNAL_ACCESS_WRITE); |
595 | if (status < 0) { | 595 | if (status < 0) { |
596 | mlog_errno(status); | 596 | mlog_errno(status); |
597 | goto leave; | 597 | goto leave; |
@@ -1121,8 +1121,8 @@ static int __ocfs2_write_remove_suid(struct inode *inode, | |||
1121 | goto out; | 1121 | goto out; |
1122 | } | 1122 | } |
1123 | 1123 | ||
1124 | ret = ocfs2_journal_access(handle, inode, bh, | 1124 | ret = ocfs2_journal_access_di(handle, inode, bh, |
1125 | OCFS2_JOURNAL_ACCESS_WRITE); | 1125 | OCFS2_JOURNAL_ACCESS_WRITE); |
1126 | if (ret < 0) { | 1126 | if (ret < 0) { |
1127 | mlog_errno(ret); | 1127 | mlog_errno(ret); |
1128 | goto out_trans; | 1128 | goto out_trans; |