Merge branch 'linux-symbol-collisions' into refs/top-bases/linux-zfs-branch

This commit is contained in:
Brian Behlendorf 2008-12-05 12:47:37 -08:00
commit 51e57e41da
1 changed files with 3 additions and 0 deletions

View File

@ -234,8 +234,11 @@ struct dmu_pool;
#define DMU_CALLBACK_MAGIC 0xca11bac0ca11bacfull
/* container_of() already defined in linux kernel */
#ifndef container_of
#define container_of(ptr, type, member) \
((type *)((char *)(ptr) - offsetof(type, member)))
#endif
typedef struct dmu_callback {
list_node_t dcb_node; /* linked to tx_callbacks list */