On Tue,  6 Oct 2020 13:09:55 -0700 Alexei Starovoitov wrote:
> +static ino_t get_inode_from_kernfs(struct kernfs_node* node)

nit: my bot suggests this may be missing an "INLINE" since it's a
     static function in a header

> +{
> +     struct kernfs_node___52* node52 = (void*)node;
> +
> +     if (bpf_core_field_exists(node52->id.ino)) {
> +             barrier_var(node52);
> +             return BPF_CORE_READ(node52, id.ino);
> +     } else {
> +             barrier_var(node);
> +             return (u64)BPF_CORE_READ(node, id);
> +     }
> +}

Reply via email to