• Home
  • Raw
  • Download

Lines Matching refs:err

117 	int err;  in swap_inode_boot_loader()  local
137 err = -EINVAL; in swap_inode_boot_loader()
143 err = -EPERM; in swap_inode_boot_loader()
148 err = filemap_write_and_wait(inode->i_mapping); in swap_inode_boot_loader()
149 if (err) in swap_inode_boot_loader()
152 err = filemap_write_and_wait(inode_bl->i_mapping); in swap_inode_boot_loader()
153 if (err) in swap_inode_boot_loader()
165 err = -EINVAL; in swap_inode_boot_loader()
189 err = dquot_initialize(inode); in swap_inode_boot_loader()
190 if (err) in swap_inode_boot_loader()
207 err = ext4_mark_inode_dirty(handle, inode); in swap_inode_boot_loader()
208 if (err < 0) { in swap_inode_boot_loader()
212 inode->i_ino, err); in swap_inode_boot_loader()
223 err = ext4_mark_inode_dirty(handle, inode_bl); in swap_inode_boot_loader()
224 if (err < 0) { in swap_inode_boot_loader()
228 inode_bl->i_ino, err); in swap_inode_boot_loader()
236 err = dquot_alloc_space(inode, -1 * diff); in swap_inode_boot_loader()
238 if (err < 0) { in swap_inode_boot_loader()
257 return err; in swap_inode_boot_loader()
300 int err = -EPERM, migrate = 0; in ext4_ioctl_setflags() local
315 err = vfs_ioc_setflags_prepare(inode, oldflags, flags); in ext4_ioctl_setflags()
316 if (err) in ext4_ioctl_setflags()
333 err = -EOPNOTSUPP; in ext4_ioctl_setflags()
337 err = ext4_truncate(inode); in ext4_ioctl_setflags()
338 if (err) in ext4_ioctl_setflags()
344 err = -EOPNOTSUPP; in ext4_ioctl_setflags()
349 err = -ENOTDIR; in ext4_ioctl_setflags()
354 err = -ENOTEMPTY; in ext4_ioctl_setflags()
368 err = filemap_write_and_wait(inode->i_mapping); in ext4_ioctl_setflags()
369 if (err) in ext4_ioctl_setflags()
375 err = PTR_ERR(handle); in ext4_ioctl_setflags()
380 err = ext4_reserve_inode_write(handle, inode, &iloc); in ext4_ioctl_setflags()
381 if (err) in ext4_ioctl_setflags()
399 err = ext4_mark_iloc_dirty(handle, inode, &iloc); in ext4_ioctl_setflags()
402 if (err) in ext4_ioctl_setflags()
411 err = -EBUSY; in ext4_ioctl_setflags()
415 err = ext4_change_inode_journal_flag(inode, jflag); in ext4_ioctl_setflags()
416 if (err) in ext4_ioctl_setflags()
421 err = ext4_ext_migrate(inode); in ext4_ioctl_setflags()
423 err = ext4_ind_migrate(inode); in ext4_ioctl_setflags()
427 return err; in ext4_ioctl_setflags()
436 int err, rc; in ext4_ioctl_setproject() local
458 err = -EPERM; in ext4_ioctl_setproject()
461 return err; in ext4_ioctl_setproject()
463 err = ext4_get_inode_loc(inode, &iloc); in ext4_ioctl_setproject()
464 if (err) in ext4_ioctl_setproject()
465 return err; in ext4_ioctl_setproject()
469 err = ext4_expand_extra_isize(inode, in ext4_ioctl_setproject()
472 if (err) in ext4_ioctl_setproject()
473 return err; in ext4_ioctl_setproject()
478 err = dquot_initialize(inode); in ext4_ioctl_setproject()
479 if (err) in ext4_ioctl_setproject()
480 return err; in ext4_ioctl_setproject()
488 err = ext4_reserve_inode_write(handle, inode, &iloc); in ext4_ioctl_setproject()
489 if (err) in ext4_ioctl_setproject()
499 err = __dquot_transfer(inode, transfer_to); in ext4_ioctl_setproject()
502 if (err) in ext4_ioctl_setproject()
510 if (!err) in ext4_ioctl_setproject()
511 err = rc; in ext4_ioctl_setproject()
514 return err; in ext4_ioctl_setproject()
703 int err, err2=0; in ext4_ioctl_group_add() local
705 err = ext4_resize_begin(sb); in ext4_ioctl_group_add()
706 if (err) in ext4_ioctl_group_add()
707 return err; in ext4_ioctl_group_add()
712 err = -EOPNOTSUPP; in ext4_ioctl_group_add()
716 err = mnt_want_write_file(file); in ext4_ioctl_group_add()
717 if (err) in ext4_ioctl_group_add()
720 err = ext4_group_add(sb, input); in ext4_ioctl_group_add()
726 if (err == 0) in ext4_ioctl_group_add()
727 err = err2; in ext4_ioctl_group_add()
729 if (!err && ext4_has_group_desc_csum(sb) && in ext4_ioctl_group_add()
731 err = ext4_register_li_request(sb, input->group); in ext4_ioctl_group_add()
734 return err; in ext4_ioctl_group_add()
834 int err; in ext4_ioctl() local
854 err = mnt_want_write_file(filp); in ext4_ioctl()
855 if (err) in ext4_ioctl()
856 return err; in ext4_ioctl()
859 err = ext4_ioctl_check_immutable(inode, in ext4_ioctl()
862 if (!err) in ext4_ioctl()
863 err = ext4_ioctl_setflags(inode, flags); in ext4_ioctl()
866 return err; in ext4_ioctl()
876 int err; in ext4_ioctl() local
887 err = mnt_want_write_file(filp); in ext4_ioctl()
888 if (err) in ext4_ioctl()
889 return err; in ext4_ioctl()
891 err = -EFAULT; in ext4_ioctl()
898 err = PTR_ERR(handle); in ext4_ioctl()
901 err = ext4_reserve_inode_write(handle, inode, &iloc); in ext4_ioctl()
902 if (err == 0) { in ext4_ioctl()
905 err = ext4_mark_iloc_dirty(handle, inode, &iloc); in ext4_ioctl()
913 return err; in ext4_ioctl()
917 int err, err2=0; in ext4_ioctl() local
919 err = ext4_resize_begin(sb); in ext4_ioctl()
920 if (err) in ext4_ioctl()
921 return err; in ext4_ioctl()
924 err = -EFAULT; in ext4_ioctl()
931 err = -EOPNOTSUPP; in ext4_ioctl()
935 err = mnt_want_write_file(filp); in ext4_ioctl()
936 if (err) in ext4_ioctl()
939 err = ext4_group_extend(sb, EXT4_SB(sb)->s_es, n_blocks_count); in ext4_ioctl()
945 if (err == 0) in ext4_ioctl()
946 err = err2; in ext4_ioctl()
950 return err; in ext4_ioctl()
956 int err; in ext4_ioctl() local
972 err = -EBADF; in ext4_ioctl()
979 err = -EOPNOTSUPP; in ext4_ioctl()
984 err = -EOPNOTSUPP; in ext4_ioctl()
988 err = mnt_want_write_file(filp); in ext4_ioctl()
989 if (err) in ext4_ioctl()
992 err = ext4_move_extents(filp, donor.file, me.orig_start, in ext4_ioctl()
998 err = -EFAULT; in ext4_ioctl()
1001 return err; in ext4_ioctl()
1016 int err; in ext4_ioctl() local
1020 err = mnt_want_write_file(filp); in ext4_ioctl()
1021 if (err) in ext4_ioctl()
1022 return err; in ext4_ioctl()
1030 err = ext4_ext_migrate(inode); in ext4_ioctl()
1033 return err; in ext4_ioctl()
1038 int err; in ext4_ioctl() local
1042 err = mnt_want_write_file(filp); in ext4_ioctl()
1043 if (err) in ext4_ioctl()
1044 return err; in ext4_ioctl()
1045 err = ext4_alloc_da_blocks(inode); in ext4_ioctl()
1047 return err; in ext4_ioctl()
1052 int err; in ext4_ioctl() local
1055 err = mnt_want_write_file(filp); in ext4_ioctl()
1056 if (err) in ext4_ioctl()
1057 return err; in ext4_ioctl()
1058 err = swap_inode_boot_loader(sb, inode); in ext4_ioctl()
1060 return err; in ext4_ioctl()
1065 int err = 0, err2 = 0; in ext4_ioctl() local
1073 err = ext4_resize_begin(sb); in ext4_ioctl()
1074 if (err) in ext4_ioctl()
1075 return err; in ext4_ioctl()
1077 err = mnt_want_write_file(filp); in ext4_ioctl()
1078 if (err) in ext4_ioctl()
1081 err = ext4_resize_fs(sb, n_blocks_count); in ext4_ioctl()
1087 if (err == 0) in ext4_ioctl()
1088 err = err2; in ext4_ioctl()
1090 if (!err && (o_group < EXT4_SB(sb)->s_groups_count) && in ext4_ioctl()
1093 err = ext4_register_li_request(sb, o_group); in ext4_ioctl()
1097 return err; in ext4_ioctl()
1145 int err, err2; in ext4_ioctl() local
1152 err = mnt_want_write_file(filp); in ext4_ioctl()
1153 if (err) in ext4_ioctl()
1154 return err; in ext4_ioctl()
1157 err = PTR_ERR(handle); in ext4_ioctl()
1160 err = ext4_journal_get_write_access(handle, sbi->s_sbh); in ext4_ioctl()
1161 if (err) in ext4_ioctl()
1164 err = ext4_handle_dirty_metadata(handle, NULL, in ext4_ioctl()
1168 if (err2 && !err) in ext4_ioctl()
1169 err = err2; in ext4_ioctl()
1172 if (err) in ext4_ioctl()
1173 return err; in ext4_ioctl()
1254 int err; in ext4_ioctl() local
1271 err = mnt_want_write_file(filp); in ext4_ioctl()
1272 if (err) in ext4_ioctl()
1273 return err; in ext4_ioctl()
1277 err = vfs_ioc_fssetxattr_check(inode, &old_fa, &fa); in ext4_ioctl()
1278 if (err) in ext4_ioctl()
1282 err = ext4_ioctl_check_immutable(inode, fa.fsx_projid, flags); in ext4_ioctl()
1283 if (err) in ext4_ioctl()
1285 err = ext4_ioctl_setflags(inode, flags); in ext4_ioctl()
1286 if (err) in ext4_ioctl()
1288 err = ext4_ioctl_setproject(filp, fa.fsx_projid); in ext4_ioctl()
1292 return err; in ext4_ioctl()
1347 int err; in ext4_compat_ioctl() local
1350 err = get_user(input.group, &uinput->group); in ext4_compat_ioctl()
1351 err |= get_user(input.block_bitmap, &uinput->block_bitmap); in ext4_compat_ioctl()
1352 err |= get_user(input.inode_bitmap, &uinput->inode_bitmap); in ext4_compat_ioctl()
1353 err |= get_user(input.inode_table, &uinput->inode_table); in ext4_compat_ioctl()
1354 err |= get_user(input.blocks_count, &uinput->blocks_count); in ext4_compat_ioctl()
1355 err |= get_user(input.reserved_blocks, in ext4_compat_ioctl()
1357 if (err) in ext4_compat_ioctl()