Index: src/hash.c =================================================================== --- src/hash.c (revision 18) +++ src/hash.c (working copy) @@ -1317,8 +1317,10 @@ struct list_head *head; struct list_head *iter = NULL; +#ifdef CONFIG_SMP if (spin_trylock(&h->lock)) BUG(); +#endif bucket = OCFS_INODE_HASH(h, off); @@ -1347,8 +1349,10 @@ struct list_head *head; struct list_head *iter = NULL; +#ifdef CONFIG_SMP if (spin_trylock(&h->lock)) BUG(); +#endif for(bucket = 0; bucket < h->size; bucket++) { head = &h->hash[bucket];