Hello again,
I fixed the error myself by calling inode_nohighmem when we initialize the
inode.
/Bo Branten
/*
* Allocate a new inode (of the file system identified by `sb') and
* return it, associated with `newnode'. Return the `inode' or NULL.
* The reference count on `inode' is incremented.
*/
static void
nnpfs_fill_inode(struct inode *inode, struct nnpfs_msg_node *node)
{
struct nnpfs_attr *attr = &node->attr;
if (!XA_VALID_TYPE(attr)) {
inode->i_op = &nnpfs_dead_inode_operations;
inode->i_fop = &nnpfs_dead_operations;
} else if (attr->xa_type == NNPFS_FILE_REG) {
inode->i_op = &nnpfs_file_inode_operations;
inode->i_fop = &nnpfs_file_operations;
inode->i_mapping->a_ops = &nnpfs_aops;
} else if (attr->xa_type == NNPFS_FILE_DIR) {
inode->i_op = &nnpfs_dir_inode_operations;
inode->i_fop = &nnpfs_dir_operations;
inode->i_mapping->a_ops = &nnpfs_aops;
} else if (attr->xa_type == NNPFS_FILE_LNK) {
inode->i_op = &nnpfs_link_inode_operations;
inode->i_fop = &nnpfs_link_operations;
inode->i_mapping->a_ops = &nnpfs_aops;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)
inode_nohighmem(inode);
#endif
} else {
inode->i_op = &nnpfs_dead_inode_operations;
inode->i_fop = &nnpfs_dead_operations;
}
}
--
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