diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-01-17 15:31:35 -0500 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-04-26 18:01:31 -0400 |
commit | 363041a5f74b953ab6b705ac9c88e5eda218a24b (patch) | |
tree | c0661c3f88978f2049693682f1cb94b20a8454c0 /fs/ocfs2/inode.c | |
parent | dcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 (diff) |
ocfs2: temporarily remove extent map caching
The code in extent_map.c is not prepared to deal with a subtree being
rotated between lookups. This can happen when filling holes in sparse files.
Instead of a lengthy patch to update the code (which would likely lose the
benefit of caching subtree roots), we remove most of the algorithms and
implement a simple path based lookup. A less ambitious extent caching scheme
will be added in a later patch.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/inode.c')
-rw-r--r-- | fs/ocfs2/inode.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 08d57a3d4e83..5ff8549eb1a3 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -1003,9 +1003,6 @@ void ocfs2_clear_inode(struct inode *inode) | |||
1003 | "Clear inode of %llu, inode has io markers\n", | 1003 | "Clear inode of %llu, inode has io markers\n", |
1004 | (unsigned long long)oi->ip_blkno); | 1004 | (unsigned long long)oi->ip_blkno); |
1005 | 1005 | ||
1006 | ocfs2_extent_map_drop(inode, 0); | ||
1007 | ocfs2_extent_map_init(inode); | ||
1008 | |||
1009 | status = ocfs2_drop_inode_locks(inode); | 1006 | status = ocfs2_drop_inode_locks(inode); |
1010 | if (status < 0) | 1007 | if (status < 0) |
1011 | mlog_errno(status); | 1008 | mlog_errno(status); |
@@ -1102,8 +1099,7 @@ struct buffer_head *ocfs2_bread(struct inode *inode, | |||
1102 | return NULL; | 1099 | return NULL; |
1103 | } | 1100 | } |
1104 | 1101 | ||
1105 | tmperr = ocfs2_extent_map_get_blocks(inode, block, 1, | 1102 | tmperr = ocfs2_extent_map_get_blocks(inode, block, &p_blkno, NULL); |
1106 | &p_blkno, NULL); | ||
1107 | if (tmperr < 0) { | 1103 | if (tmperr < 0) { |
1108 | mlog_errno(tmperr); | 1104 | mlog_errno(tmperr); |
1109 | goto fail; | 1105 | goto fail; |