patch:reiserfs 3.6.25 + LVM(Fix oops reiserfs filesystem)

hugang (linuxhappy@etang.com)
Sat, 13 Jan 2001 23:41:51 -0800


--- reiserfs_fs.h.old Sat Jan 13 22:17:45 2001
+++ reiserfs_fs.h Sat Jan 13 22:46:42 2001
@@ -1420,7 +1420,7 @@
#define op_is_left_mergeable(key,bsize) item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize)
#define op_print_item(ih,item) item_ops[le_ih_k_type (ih)]->print_item (ih, item)
#define op_check_item(ih,item) item_ops[le_ih_k_type (ih)]->check_item (ih, item)
-#define op_create_vi(vn,vi,is_affected,insert_size) item_ops[le_ih_k_type (vi->vi_ih)]->create_vi (vn,vi,is_affected,insert_size)
+#define op_create_vi(vn,vi,is_affected,insert_size) item_ops[le_ih_k_type(vi->vi_ih)]->create_vi > 0 ? item_ops[le_ih_k_type (vi->vi_ih)]->create_vi(vn,vi,is_affected,insert_size) : 0
#define op_check_left(vi,free,start_skip,end_skip) item_ops[(vi)->vi_index]->check_left (vi, free, start_skip, end_skip)
#define op_check_right(vi,free) item_ops[(vi)->vi_index]->check_right (vi, free)
#define op_part_size(vi,from,to) item_ops[(vi)->vi_index]->part_size (vi, from, to)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/