瀏覽代碼

[XFS] Make xfs_btree_check_ptr() debug-only code.

SGI-PV: 985583

SGI-Modid: xfs-linux-melb:xfs-kern:32224a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Lachlan McIlroy 16 年之前
父節點
當前提交
24ee0e49c9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      fs/xfs/xfs_btree.c

+ 2 - 0
fs/xfs/xfs_btree.c

@@ -160,6 +160,7 @@ xfs_btree_check_lptr(
 	return 0;
 	return 0;
 }
 }
 
 
+#ifdef DEBUG
 /*
 /*
  * Check that (short) pointer is ok.
  * Check that (short) pointer is ok.
  */
  */
@@ -197,6 +198,7 @@ xfs_btree_check_ptr(
 				be32_to_cpu((&ptr->s)[index]), level);
 				be32_to_cpu((&ptr->s)[index]), level);
 	}
 	}
 }
 }
+#endif
 
 
 /*
 /*
  * Delete the btree cursor.
  * Delete the btree cursor.