aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/namei.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-10 23:00:41 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:07:48 -0400
commit8cb471e8f82506937fe5e2e9fb0bf90f6b1f1170 (patch)
treee275a8f5db101a9990ba44931cfd116123112b11 /fs/ocfs2/namei.c
parent6e5a3d7538ad4e46a976862f593faf65750e37cc (diff)
ocfs2: Take the inode out of the metadata read/write paths.
We are really passing the inode into the ocfs2_read/write_blocks() functions to get at the metadata cache. This commit passes the cache directly into the metadata block functions, divorcing them from the inode. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r--fs/ocfs2/namei.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 8601f934010b..689761b57a18 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -507,7 +507,7 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb,
507 mlog_errno(status); 507 mlog_errno(status);
508 goto leave; 508 goto leave;
509 } 509 }
510 ocfs2_set_new_buffer_uptodate(inode, *new_fe_bh); 510 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode), *new_fe_bh);
511 511
512 status = ocfs2_journal_access_di(handle, inode, *new_fe_bh, 512 status = ocfs2_journal_access_di(handle, inode, *new_fe_bh,
513 OCFS2_JOURNAL_ACCESS_CREATE); 513 OCFS2_JOURNAL_ACCESS_CREATE);
@@ -1527,7 +1527,8 @@ static int ocfs2_create_symlink_data(struct ocfs2_super *osb,
1527 mlog_errno(status); 1527 mlog_errno(status);
1528 goto bail; 1528 goto bail;
1529 } 1529 }
1530 ocfs2_set_new_buffer_uptodate(inode, bhs[virtual]); 1530 ocfs2_set_new_buffer_uptodate(INODE_CACHE(inode),
1531 bhs[virtual]);
1531 1532
1532 status = ocfs2_journal_access(handle, inode, bhs[virtual], 1533 status = ocfs2_journal_access(handle, inode, bhs[virtual],
1533 OCFS2_JOURNAL_ACCESS_CREATE); 1534 OCFS2_JOURNAL_ACCESS_CREATE);