Lines Matching defs:error
40 int error = 0;
47 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0);
48 if (error)
56 error = xfs_buf_read(mp->m_ddev_targp, d, BTOBB(byte_cnt), 0,
58 if (error)
59 return error;
68 error = -EFSCORRUPTED;
90 error = 0;
93 return error;
103 int error = 0;
123 error = -EFSCORRUPTED;
128 error = xfs_readlink_bmap_ilocked(ip, link);
132 return error;
146 int error = 0;
184 error = xfs_qm_vop_dqalloc(dp, current_fsuid(), current_fsgid(), prid,
187 if (error)
188 return error;
200 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_symlink, resblks, 0, 0, &tp);
201 if (error)
211 error = -EPERM;
218 error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp,
220 if (error)
226 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0,
228 if (error)
234 * (and release all the locks). An error from here on will result in
236 * error path.
262 error = xfs_bmapi_write(tp, ip, first_fsb, fs_blocks,
264 if (error)
278 error = xfs_trans_get_buf(tp, mp->m_ddev_targp, d,
280 if (error)
308 error = xfs_dir_createname(tp, dp, link_name, ip->i_ino, resblks);
309 if (error)
323 error = xfs_trans_commit(tp);
324 if (error)
353 return error;
371 int error;
390 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, 0, 0, 0, &tp);
391 if (error)
392 return error;
400 * locked for the second transaction. In the error paths we need it
412 error = xfs_bmapi_read(ip, 0, xfs_symlink_blocks(mp, size),
414 if (error)
420 error = xfs_trans_get_buf(tp, mp->m_ddev_targp,
424 if (error)
431 error = xfs_bunmapi(tp, ip, 0, size, 0, nmaps, &done);
432 if (error)
441 error = xfs_trans_commit(tp);
442 if (error) {
461 return error;