I need to cast struct inode to struct btrfs_inode. in order to do it, i looked at implementation of btrfs_getattr.
the code is simple: struct btrfs_inode *btrfsInode; btrfsInode = BTRFS_I(inode); in order to compile i must add the headers on top of the function: #include "/data/kernel/linux-4.1.21-x86_64/fs/btrfs/ctree.h" #include "/data/kernel/linux-4.1.21-x86_64/fs/btrfs/btrfs_inode.h" What is the problem ? I must manually download and include ctree.h and btrfs_inode.h, they are not provided in the kernel-headers package. On every platform I compile my driver, I have specific VM for the distro/kernel version, so on every VM I usually download package kernel-headers and everything compiles perfectly. btrfs was introduced in kernel 3.0 above. Arent the btrfs headers should be there ? do they exist in another package ? maybe fs-headers or something like that ? -- 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