Lines Matching refs:error

41 	int			error;  in xfs_attr3_rmt_stale()  local
52 error = xfs_bmapi_read(dp, (xfs_fileoff_t)blkno, blkcnt, in xfs_attr3_rmt_stale()
54 if (error) in xfs_attr3_rmt_stale()
55 return error; in xfs_attr3_rmt_stale()
64 error = xfs_attr_rmtval_stale(dp, &map, 0); in xfs_attr3_rmt_stale()
65 if (error) in xfs_attr3_rmt_stale()
66 return error; in xfs_attr3_rmt_stale()
92 int error = 0; in xfs_attr3_leaf_inactive() local
114 error = xfs_attr3_rmt_stale(dp, in xfs_attr3_leaf_inactive()
116 if (error) in xfs_attr3_leaf_inactive()
122 return error; in xfs_attr3_leaf_inactive()
142 int error, i; in xfs_attr3_node_inactive() local
175 error = xfs_da3_node_read(*trans, dp, child_fsb, &child_bp, in xfs_attr3_node_inactive()
177 if (error) in xfs_attr3_node_inactive()
178 return error; in xfs_attr3_node_inactive()
190 error = xfs_attr3_node_inactive(trans, dp, child_bp, in xfs_attr3_node_inactive()
195 error = xfs_attr3_leaf_inactive(trans, dp, child_bp); in xfs_attr3_node_inactive()
200 error = -EFSCORRUPTED; in xfs_attr3_node_inactive()
203 if (error) in xfs_attr3_node_inactive()
204 return error; in xfs_attr3_node_inactive()
209 error = xfs_trans_get_buf(*trans, mp->m_ddev_targp, in xfs_attr3_node_inactive()
213 if (error) in xfs_attr3_node_inactive()
214 return error; in xfs_attr3_node_inactive()
225 error = xfs_da3_node_read_mapped(*trans, dp, in xfs_attr3_node_inactive()
227 if (error) in xfs_attr3_node_inactive()
228 return error; in xfs_attr3_node_inactive()
238 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_node_inactive()
239 if (error) in xfs_attr3_node_inactive()
240 return error; in xfs_attr3_node_inactive()
261 int error; in xfs_attr3_root_inactive() local
269 error = xfs_da3_node_read(*trans, dp, 0, &bp, XFS_ATTR_FORK); in xfs_attr3_root_inactive()
270 if (error) in xfs_attr3_root_inactive()
271 return error; in xfs_attr3_root_inactive()
282 error = xfs_attr3_node_inactive(trans, dp, bp, 1); in xfs_attr3_root_inactive()
286 error = xfs_attr3_leaf_inactive(trans, dp, bp); in xfs_attr3_root_inactive()
289 error = -EFSCORRUPTED; in xfs_attr3_root_inactive()
294 if (error) in xfs_attr3_root_inactive()
295 return error; in xfs_attr3_root_inactive()
300 error = xfs_trans_get_buf(*trans, mp->m_ddev_targp, blkno, in xfs_attr3_root_inactive()
302 if (error) in xfs_attr3_root_inactive()
303 return error; in xfs_attr3_root_inactive()
304 error = bp->b_error; in xfs_attr3_root_inactive()
305 if (error) { in xfs_attr3_root_inactive()
307 return error; in xfs_attr3_root_inactive()
313 error = xfs_trans_roll_inode(trans, dp); in xfs_attr3_root_inactive()
315 return error; in xfs_attr3_root_inactive()
333 int error = 0; in xfs_attr_inactive() local
344 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_attrinval, 0, 0, 0, &trans); in xfs_attr_inactive()
345 if (error) in xfs_attr_inactive()
367 error = xfs_attr3_root_inactive(&trans, dp); in xfs_attr_inactive()
368 if (error) in xfs_attr_inactive()
371 error = xfs_itruncate_extents(&trans, dp, XFS_ATTR_FORK, 0); in xfs_attr_inactive()
372 if (error) in xfs_attr_inactive()
379 error = xfs_trans_commit(trans); in xfs_attr_inactive()
381 return error; in xfs_attr_inactive()
390 return error; in xfs_attr_inactive()