aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmglue.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-01-17 15:31:35 -0500
committerMark Fasheh <mark.fasheh@oracle.com>2007-04-26 18:01:31 -0400
commit363041a5f74b953ab6b705ac9c88e5eda218a24b (patch)
treec0661c3f88978f2049693682f1cb94b20a8454c0 /fs/ocfs2/dlmglue.c
parentdcd0538ff4e854fa9d7f4630b359ca8fdb5cb5a8 (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/dlmglue.c')
-rw-r--r--fs/ocfs2/dlmglue.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index ca4f0e0e7587..8de6678a340a 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -1614,10 +1614,6 @@ static int ocfs2_meta_lock_update(struct inode *inode,
1614 * for the inode metadata. */ 1614 * for the inode metadata. */
1615 ocfs2_metadata_cache_purge(inode); 1615 ocfs2_metadata_cache_purge(inode);
1616 1616
1617 /* will do nothing for inode types that don't use the extent
1618 * map (bitmap files, etc) */
1619 ocfs2_extent_map_trunc(inode, 0);
1620
1621 if (ocfs2_meta_lvb_is_trustable(inode, lockres)) { 1617 if (ocfs2_meta_lvb_is_trustable(inode, lockres)) {
1622 mlog(0, "Trusting LVB on inode %llu\n", 1618 mlog(0, "Trusting LVB on inode %llu\n",
1623 (unsigned long long)oi->ip_blkno); 1619 (unsigned long long)oi->ip_blkno);