[Tux3] [PATCH 06/10] purge_inum() should use buffer->data
OGAWA Hirofumi
hirofumi at mail.parknet.co.jp
Fri Oct 17 02:43:39 PDT 2008
---
user/test/inode.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -puN user/test/inode.c~inode-purge_inum-fix user/test/inode.c
--- tux3/user/test/inode.c~inode-purge_inum-fix 2008-10-16 01:20:44.000000000 +0900
+++ tux3-hirofumi/user/test/inode.c 2008-10-16 01:20:44.000000000 +0900
@@ -235,7 +235,8 @@ int purge_inum(BTREE, inum_t inum)
int err = -ENOENT, levels = btree->sb->itable.root.depth;
struct path path[levels + 1];
if (!(err = probe(btree, inum, path))) {
- err = ileaf_purge(btree, inum, to_ileaf(path[levels].buffer));
+ struct ileaf *ileaf = to_ileaf(path[levels].buffer->data);
+ err = ileaf_purge(btree, inum, ileaf);
release_path(path, levels + 1);
}
return err;
_
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list