• Home
  • Raw
  • Download

Lines Matching refs:error

706 	int error;  in shmem_add_to_page_cache()  local
719 error = mem_cgroup_charge(page, charge_mm, gfp); in shmem_add_to_page_cache()
720 if (error) { in shmem_add_to_page_cache()
725 goto error; in shmem_add_to_page_cache()
757 error = xas_error(&xas); in shmem_add_to_page_cache()
758 goto error; in shmem_add_to_page_cache()
762 error: in shmem_add_to_page_cache()
765 return error; in shmem_add_to_page_cache()
774 int error; in shmem_delete_from_page_cache() local
779 error = shmem_replace_entry(mapping, page->index, page, radswap); in shmem_delete_from_page_cache()
786 BUG_ON(error); in shmem_delete_from_page_cache()
1094 int error; in shmem_setattr() local
1096 error = setattr_prepare(&init_user_ns, dentry, attr); in shmem_setattr()
1097 if (error) in shmem_setattr()
1098 return error; in shmem_setattr()
1110 error = shmem_reacct_size(SHMEM_I(inode)->flags, in shmem_setattr()
1112 if (error) in shmem_setattr()
1113 return error; in shmem_setattr()
1134 error = posix_acl_chmod(&init_user_ns, inode, inode->i_mode); in shmem_setattr()
1135 return error; in shmem_setattr()
1225 int error = 0; in shmem_unuse_swap_entries() local
1233 error = shmem_swapin_page(inode, indices[i], in shmem_unuse_swap_entries()
1237 if (error == 0) { in shmem_unuse_swap_entries()
1242 if (error == -ENOMEM) in shmem_unuse_swap_entries()
1244 error = 0; in shmem_unuse_swap_entries()
1246 return error ? error : ret; in shmem_unuse_swap_entries()
1304 int error = 0; in shmem_unuse() local
1324 error = shmem_unuse_inode(&info->vfs_inode, type, frontswap, in shmem_unuse()
1334 if (error) in shmem_unuse()
1339 return error; in shmem_unuse()
1649 int error; in shmem_replace_page() local
1680 error = shmem_replace_entry(swap_mapping, swap_index, oldpage, newpage); in shmem_replace_page()
1681 if (!error) { in shmem_replace_page()
1688 if (unlikely(error)) { in shmem_replace_page()
1706 return error; in shmem_replace_page()
1725 int error; in shmem_swapin_page() local
1743 error = -ENOMEM; in shmem_swapin_page()
1752 error = -EEXIST; in shmem_swapin_page()
1756 error = -EIO; in shmem_swapin_page()
1768 error = shmem_replace_page(&page, gfp, info, index); in shmem_swapin_page()
1769 if (error) in shmem_swapin_page()
1773 error = shmem_add_to_page_cache(page, mapping, index, in shmem_swapin_page()
1776 if (error) in shmem_swapin_page()
1795 error = -EEXIST; in shmem_swapin_page()
1802 return error; in shmem_swapin_page()
1827 int error; in shmem_getpage_gfp() local
1855 error = shmem_swapin_page(inode, index, &page, in shmem_getpage_gfp()
1857 if (error == -EEXIST) in shmem_getpage_gfp()
1861 return error; in shmem_getpage_gfp()
1913 error = PTR_ERR(page); in shmem_getpage_gfp()
1915 if (error != -ENOSPC) in shmem_getpage_gfp()
1941 error = shmem_add_to_page_cache(page, mapping, hindex, in shmem_getpage_gfp()
1944 if (error) in shmem_getpage_gfp()
2006 error = -EINVAL; in shmem_getpage_gfp()
2029 if (error == -ENOSPC && !once++) { in shmem_getpage_gfp()
2035 if (error == -EEXIST) in shmem_getpage_gfp()
2037 return error; in shmem_getpage_gfp()
2537 int error = 0; in shmem_file_read_iter() local
2567 error = shmem_getpage(inode, index, &page, sgp); in shmem_file_read_iter()
2568 if (error) { in shmem_file_read_iter()
2569 if (error == -EINVAL) in shmem_file_read_iter()
2570 error = 0; in shmem_file_read_iter()
2580 error = -EIO; in shmem_file_read_iter()
2634 error = -EFAULT; in shmem_file_read_iter()
2642 return retval ? retval : error; in shmem_file_read_iter()
2673 int error; in shmem_fallocate() local
2688 error = -EPERM; in shmem_fallocate()
2710 error = 0; in shmem_fallocate()
2715 error = inode_newsize_ok(inode, offset + len); in shmem_fallocate()
2716 if (error) in shmem_fallocate()
2720 error = -EPERM; in shmem_fallocate()
2728 error = -ENOSPC; in shmem_fallocate()
2758 error = -EINTR; in shmem_fallocate()
2760 error = -ENOMEM; in shmem_fallocate()
2762 error = shmem_getpage(inode, index, &page, SGP_FALLOC); in shmem_fallocate()
2763 if (error) { in shmem_fallocate()
2817 return error; in shmem_fallocate()
2852 int error = -ENOSPC; in shmem_mknod() local
2856 error = simple_acl_create(dir, inode); in shmem_mknod()
2857 if (error) in shmem_mknod()
2859 error = security_inode_init_security(inode, dir, in shmem_mknod()
2862 if (error && error != -EOPNOTSUPP) in shmem_mknod()
2865 error = 0; in shmem_mknod()
2871 return error; in shmem_mknod()
2874 return error; in shmem_mknod()
2882 int error = -ENOSPC; in shmem_tmpfile() local
2886 error = security_inode_init_security(inode, dir, in shmem_tmpfile()
2889 if (error && error != -EOPNOTSUPP) in shmem_tmpfile()
2891 error = simple_acl_create(dir, inode); in shmem_tmpfile()
2892 if (error) in shmem_tmpfile()
2896 return error; in shmem_tmpfile()
2899 return error; in shmem_tmpfile()
2905 int error; in shmem_mkdir() local
2907 if ((error = shmem_mknod(&init_user_ns, dir, dentry, in shmem_mkdir()
2909 return error; in shmem_mkdir()
3001 int error; in shmem_whiteout() local
3007 error = shmem_mknod(&init_user_ns, old_dir, whiteout, in shmem_whiteout()
3010 if (error) in shmem_whiteout()
3011 return error; in shmem_whiteout()
3048 int error; in shmem_rename2() local
3050 error = shmem_whiteout(&init_user_ns, old_dir, old_dentry); in shmem_rename2()
3051 if (error) in shmem_rename2()
3052 return error; in shmem_rename2()
3077 int error; in shmem_symlink() local
3091 error = security_inode_init_security(inode, dir, &dentry->d_name, in shmem_symlink()
3093 if (error && error != -EOPNOTSUPP) { in shmem_symlink()
3095 return error; in shmem_symlink()
3108 error = shmem_getpage(inode, 0, &page, SGP_WRITE); in shmem_symlink()
3109 if (error) { in shmem_symlink()
3111 return error; in shmem_symlink()
3139 int error; in shmem_get_link() local
3150 error = shmem_getpage(inode, 0, &page, SGP_READ); in shmem_get_link()
3151 if (error) in shmem_get_link()
3152 return ERR_PTR(error); in shmem_get_link()
3962 int error; in shmem_init() local
3966 error = register_filesystem(&shmem_fs_type); in shmem_init()
3967 if (error) { in shmem_init()
3974 error = PTR_ERR(shm_mnt); in shmem_init()
3991 shm_mnt = ERR_PTR(error); in shmem_init()
3992 return error; in shmem_init()
4249 int error; in shmem_read_mapping_page_gfp() local
4252 error = shmem_getpage_gfp(inode, index, &page, SGP_CACHE, in shmem_read_mapping_page_gfp()
4254 if (error) in shmem_read_mapping_page_gfp()
4255 return ERR_PTR(error); in shmem_read_mapping_page_gfp()