I read my question again, it was not perfectly clear, I am trying to compile my own driver and not the btrfs module.
>From what I understand, it is considered "bad practice" in my driver to make a call: btrfsInode = BTRFS_I(inode); since it uses the internal btrfs API (in an outside driver such as mine..) I guess another solution would be to download in my machine kernel-source package and include /usr/src/linux/fs/btrfs/ in the makefile.. then use #include <btrfs/ctree.h> # Make arguments PWD := $(shell pwd) INCLUDE := -I/usr/include/asm/mach-default/ INCLUDE += -I/usr/src/linux/fs/ KDIR := /lib/modules/$(KERNEL_HEADERS)/build the problem I deal here is make compilation termination: make -C /lib/modules/4.1.21.x86_64.1/build -I/usr/include/asm/mach-default/ -I/usr/src/linux/fs/ SUBDIRS=/home/ilan/unix/v6.3/Filer/Linux modules make[2]: Entering directory `/data/kernel/linux-4.1.21-x86_64' CC [M] /home/ilan/unix/v6.3/Filer/Linux/XXXX_hooks.o /home/ilan/unix/v6.3/Filer/Linux/XXXX_hooks.c:37:25: fatal error: btrfs/ctree.h: No such file or directory #include <btrfs/ctree.h> ^ compilation terminated. The file "/usr/src/linux/fs/btrfs/ctree.h" ofcourse exists -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html