Lines Matching refs:error
32 int error; in xfs_growfs_data_private() local
44 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private()
45 return error; in xfs_growfs_data_private()
46 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private()
49 if (error) in xfs_growfs_data_private()
50 return error; in xfs_growfs_data_private()
67 error = xfs_initialize_perag(mp, nagcount, &nagimax); in xfs_growfs_data_private()
68 if (error) in xfs_growfs_data_private()
69 return error; in xfs_growfs_data_private()
72 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growdata, in xfs_growfs_data_private()
74 if (error) in xfs_growfs_data_private()
75 return error; in xfs_growfs_data_private()
100 error = xfs_ag_init_headers(mp, &id); in xfs_growfs_data_private()
101 if (error) { in xfs_growfs_data_private()
106 error = xfs_buf_delwri_submit(&id.buffer_list); in xfs_growfs_data_private()
107 if (error) in xfs_growfs_data_private()
114 error = xfs_ag_extend_space(mp, tp, &id, new); in xfs_growfs_data_private()
115 if (error) in xfs_growfs_data_private()
132 error = xfs_trans_commit(tp); in xfs_growfs_data_private()
133 if (error) in xfs_growfs_data_private()
134 return error; in xfs_growfs_data_private()
150 error = xfs_ag_resv_free(pag); in xfs_growfs_data_private()
152 if (error) in xfs_growfs_data_private()
153 return error; in xfs_growfs_data_private()
161 error = xfs_fs_reserve_ag_blocks(mp); in xfs_growfs_data_private()
162 if (error == -ENOSPC) in xfs_growfs_data_private()
163 error = 0; in xfs_growfs_data_private()
164 return error; in xfs_growfs_data_private()
168 return error; in xfs_growfs_data_private()
200 int error; in xfs_growfs_imaxpct() local
205 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growdata, in xfs_growfs_imaxpct()
207 if (error) in xfs_growfs_imaxpct()
208 return error; in xfs_growfs_imaxpct()
226 int error = 0; in xfs_growfs_data() local
235 error = xfs_growfs_imaxpct(mp, in->imaxpct); in xfs_growfs_data()
236 if (error) in xfs_growfs_data()
241 error = xfs_growfs_data_private(mp, in); in xfs_growfs_data()
242 if (error) in xfs_growfs_data()
255 error = xfs_update_secondary_sbs(mp); in xfs_growfs_data()
265 return error; in xfs_growfs_data()
273 int error; in xfs_growfs_log() local
279 error = xfs_growfs_log_private(mp, in); in xfs_growfs_log()
281 return error; in xfs_growfs_log()
328 int error = 0; in xfs_reserve_blocks() local
368 error = xfs_mod_fdblocks(mp, fdblks_delta, 0); in xfs_reserve_blocks()
404 error = xfs_mod_fdblocks(mp, -fdblks_delta, 0); in xfs_reserve_blocks()
405 if (!error) in xfs_reserve_blocks()
416 return error; in xfs_reserve_blocks()
512 int error = 0; in xfs_fs_reserve_ag_blocks() local
520 if (err2 && !error) in xfs_fs_reserve_ag_blocks()
521 error = err2; in xfs_fs_reserve_ag_blocks()
524 if (error && error != -ENOSPC) { in xfs_fs_reserve_ag_blocks()
526 "Error %d reserving per-AG metadata reserve pool.", error); in xfs_fs_reserve_ag_blocks()
530 return error; in xfs_fs_reserve_ag_blocks()
542 int error = 0; in xfs_fs_unreserve_ag_blocks() local
549 if (err2 && !error) in xfs_fs_unreserve_ag_blocks()
550 error = err2; in xfs_fs_unreserve_ag_blocks()
553 if (error) in xfs_fs_unreserve_ag_blocks()
555 "Error %d freeing per-AG metadata reserve pool.", error); in xfs_fs_unreserve_ag_blocks()
557 return error; in xfs_fs_unreserve_ag_blocks()