Lines Matching defs:error
67 int error;
76 error = user_path_at(AT_FDCWD, hreq->path, 0, &path);
77 if (error)
78 return error;
87 error = -EINVAL;
91 error = -EBADF;
115 error = -EFAULT;
120 error = 0;
127 return error;
191 int error;
210 error = -EPERM;
222 error = -EPERM;
227 error = -EPERM;
233 error = -EISDIR;
239 error = fd;
262 return error;
272 int error;
283 error = -EINVAL;
288 error = -EFAULT;
292 error = vfs_readlink(dentry, hreq->ohandle, olen);
296 return error;
383 int error;
429 error = xfs_attr_list(&context);
430 if (error)
435 error = -EFAULT;
438 return error;
448 int error = -ENOMEM;
459 error = xfs_ioc_attr_list(XFS_I(d_inode(dentry)), al_hreq.buffer,
462 return error;
481 int error;
486 error = xfs_attr_get(&args);
487 if (error)
492 error = -EFAULT;
496 return error;
514 int error;
528 error = xfs_attr_change(&args);
529 if (!error && (flags & XFS_IOC_ATTR_ROOT))
532 return error;
546 int error;
557 error = xfs_attrmulti_attr_get(inode, name, value, len, flags);
564 error = mnt_want_write_file(parfilp);
565 if (error)
567 error = xfs_attrmulti_attr_set(inode, name, value, *len, flags);
571 error = -EINVAL;
576 return error;
584 int error;
603 error = -E2BIG;
610 error = PTR_ERR(ops);
614 error = 0;
623 error = -EFAULT;
628 return error;
631 /* Return 0 on success or positive error */
672 int error;
711 error = xfs_inumbers(&breq, xfs_fsinumbers_fmt);
716 error = xfs_bulkstat_one(&breq, xfs_fsbulkstat_one_fmt);
719 error = xfs_bulkstat(&breq, xfs_fsbulkstat_one_fmt);
723 if (error)
724 return error;
737 /* Return 0 on success or positive error */
752 * negative error code.
849 int error;
860 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->bulkstat);
861 if (error == -ECANCELED)
863 if (error < 0)
864 return error;
866 error = xfs_bulkstat(&breq, xfs_bulkstat_fmt);
867 if (error)
868 return error;
899 int error;
910 error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->inumbers);
911 if (error == -ECANCELED)
913 if (error < 0)
914 return error;
916 error = xfs_inumbers(&breq, xfs_inumbers_fmt);
917 if (error)
918 return error;
960 int error;
973 error = xfs_ag_get_geometry(pag, &ageo);
975 if (error)
976 return error;
1191 * failure, return an error without modifying or locking the inode.
1200 int error = -EROFS;
1204 error = -EIO;
1208 error = xfs_trans_alloc_ichange(ip, NULL, NULL, pdqp,
1210 if (error)
1219 return ERR_PTR(error);
1319 int error;
1333 error = xfs_ioctl_setattr_check_projid(ip, fa);
1334 if (error)
1335 return error;
1346 error = xfs_qm_vop_dqalloc(ip, VFS_I(ip)->i_uid,
1349 if (error)
1350 return error;
1357 error = PTR_ERR(tp);
1361 error = xfs_ioctl_setattr_check_extsize(ip, fa);
1362 if (error)
1365 error = xfs_ioctl_setattr_check_cowextsize(ip, fa);
1366 if (error)
1369 error = xfs_ioctl_setattr_xflags(tp, ip, fa);
1370 if (error)
1414 error = xfs_trans_commit(tp);
1422 return error;
1428 return error;
1462 int error, i;
1491 error = xfs_getbmap(XFS_I(file_inode(file)), &bmx, buf);
1492 if (error)
1495 error = -EFAULT;
1506 error = 0;
1509 return error;
1523 int error;
1568 error = xfs_getfsmap(ip->i_mount, &xhead, recs);
1569 switch (error) {
1583 error = 0;
1601 error = -EFAULT;
1626 error = -EFAULT;
1633 error = -EFAULT;
1639 return error;
1648 int error;
1656 error = xfs_scrub_metadata(file, &scrub);
1657 if (error)
1658 return error;
1672 int error = 0;
1677 error = -EINVAL;
1684 error = -EBADF;
1690 error = -EINVAL;
1697 error = -EBADF;
1703 error = -EINVAL;
1714 error = -EINVAL;
1722 error = -EINVAL;
1727 error = -EINVAL;
1732 error = -EIO;
1736 error = xfs_swap_extents(ip, tip, sxp);
1743 return error;
1777 int error;
1793 error = mnt_want_write_file(filp);
1794 if (error)
1795 return error;
1811 error = xfs_sync_sb_buf(mp);
1812 if (error)
1818 error = xfs_update_secondary_sbs(mp);
1825 return error;
1899 int error;
2002 error = mnt_want_write_file(filp);
2003 if (error)
2004 return error;
2005 error = xfs_ioc_swapext(&sxp);
2007 return error;
2033 error = mnt_want_write_file(filp);
2034 if (error)
2035 return error;
2039 error = xfs_reserve_blocks(mp, &in, &inout);
2041 if (error)
2042 return error;
2055 error = xfs_reserve_blocks(mp, NULL, &out);
2056 if (error)
2057 return error;
2071 error = mnt_want_write_file(filp);
2072 if (error)
2073 return error;
2074 error = xfs_growfs_data(mp, &in);
2076 return error;
2085 error = mnt_want_write_file(filp);
2086 if (error)
2087 return error;
2088 error = xfs_growfs_log(mp, &in);
2090 return error;
2099 error = mnt_want_write_file(filp);
2100 if (error)
2101 return error;
2102 error = xfs_growfs_rt(mp, &in);
2104 return error;
2150 error = xfs_fs_eofblocks_from_user(&eofb, &icw);
2151 if (error)
2152 return error;
2157 error = xfs_blockgc_free_space(mp, &icw);
2159 return error;