Q: BUG_ON __GFP_HIGHMEM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello,

I am porting an filesystem from Linux kernel 4.4 to 4.5 and I hit the line:
BUG_ON(mapping_gfp_mask(mapping) & __GFP_HIGHMEM);
in fs/namei.c page_get_link() line 4612.

To begin with I simply switched from .follow_link to .get_link in struct inode_operations and from page_follow_link_light to page_get_link in our local function shown below.

Do you have any advice on how to continue debugging this?

/Bo Branten

The local follow_link/get_link function:

#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
static void *
nnpfs_follow_link (struct dentry *dentry,
                 struct nameidata *nd)
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
static const char *
nnpfs_follow_link (struct dentry *dentry,
                 void **page)
#else
static const char *
nnpfs_get_link (struct dentry *dentry,
                 struct inode *inode,
                 struct delayed_call *done)
#endif
{
    int error = 0;
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
    struct inode *inode = DENTRY_TO_INODE(dentry);
#endif

    NNPFSDEB(XDEBVNOPS, ("nnpfs_follow_link\n"));

    error = nnpfs_data_valid(inode, NNPFS_DATA_R, 0, i_size_read(inode));
    if (error)
       return ERR_PTR(error);

#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
    return page_follow_link_light(dentry, nd);
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
    return page_follow_link_light(dentry, page);
#else
    return page_get_link(dentry, inode, done);
#endif
}

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux