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
Ilan,
On Mon, Mar 20, 2017 at 10:33 AM, Ilan Schwarts wrote:
> 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 mu
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.2