aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-12 19:41:25 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:07:50 -0400
commit0cf2f7632b1789b811ab20b611c4156e6de2b055 (patch)
tree34f7cf3584e4fa2bc187d4b75ce052cb98739b0e /fs/ocfs2/file.c
parent292dd27ec76b96cebcef576f330ab121f59ccf05 (diff)
ocfs2: Pass struct ocfs2_caching_info to the journal functions.
The next step in divorcing metadata I/O management from struct inode is to pass struct ocfs2_caching_info to the journal functions. Thus the journal locks a metadata cache with the cache io_lock function. It also can compare ci_last_trans and ci_created_trans directly. This is a large patch because of all the places we change ocfs2_journal_access..(handle, inode, ...) to ocfs2_journal_access..(handle, INODE_CACHE(inode), ...). Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index aa501d3f93f1..3ddbc5e917e2 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -259,7 +259,7 @@ int ocfs2_update_inode_atime(struct inode *inode,
259 goto out; 259 goto out;
260 } 260 }
261 261
262 ret = ocfs2_journal_access_di(handle, inode, bh, 262 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
263 OCFS2_JOURNAL_ACCESS_WRITE); 263 OCFS2_JOURNAL_ACCESS_WRITE);
264 if (ret) { 264 if (ret) {
265 mlog_errno(ret); 265 mlog_errno(ret);
@@ -356,7 +356,7 @@ static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb,
356 goto out; 356 goto out;
357 } 357 }
358 358
359 status = ocfs2_journal_access_di(handle, inode, fe_bh, 359 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), fe_bh,
360 OCFS2_JOURNAL_ACCESS_WRITE); 360 OCFS2_JOURNAL_ACCESS_WRITE);
361 if (status < 0) { 361 if (status < 0) {
362 mlog_errno(status); 362 mlog_errno(status);
@@ -593,7 +593,7 @@ restarted_transaction:
593 /* reserve a write to the file entry early on - that we if we 593 /* reserve a write to the file entry early on - that we if we
594 * run out of credits in the allocation path, we can still 594 * run out of credits in the allocation path, we can still
595 * update i_size. */ 595 * update i_size. */
596 status = ocfs2_journal_access_di(handle, inode, bh, 596 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
597 OCFS2_JOURNAL_ACCESS_WRITE); 597 OCFS2_JOURNAL_ACCESS_WRITE);
598 if (status < 0) { 598 if (status < 0) {
599 mlog_errno(status); 599 mlog_errno(status);
@@ -1131,7 +1131,7 @@ static int __ocfs2_write_remove_suid(struct inode *inode,
1131 goto out; 1131 goto out;
1132 } 1132 }
1133 1133
1134 ret = ocfs2_journal_access_di(handle, inode, bh, 1134 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh,
1135 OCFS2_JOURNAL_ACCESS_WRITE); 1135 OCFS2_JOURNAL_ACCESS_WRITE);
1136 if (ret < 0) { 1136 if (ret < 0) {
1137 mlog_errno(ret); 1137 mlog_errno(ret);