• Home
  • Raw
  • Download

Lines Matching refs:error

57 	int		error;		/* error value */  in xfs_rtany_summary()  local
72 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary()
73 if (error) { in xfs_rtany_summary()
74 return error; in xfs_rtany_summary()
108 int error; /* error return value */ in xfs_rtcopy_summary() local
118 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary()
120 if (error) in xfs_rtcopy_summary()
121 return error; in xfs_rtcopy_summary()
124 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary()
126 if (error) in xfs_rtcopy_summary()
127 return error; in xfs_rtcopy_summary()
128 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary()
130 if (error) in xfs_rtcopy_summary()
131 return error; in xfs_rtcopy_summary()
151 int error; /* error value */ in xfs_rtallocate_range() local
161 error = xfs_rtfind_back(mp, tp, start, 0, &preblock); in xfs_rtallocate_range()
162 if (error) { in xfs_rtallocate_range()
163 return error; in xfs_rtallocate_range()
168 error = xfs_rtfind_forw(mp, tp, end, mp->m_sb.sb_rextents - 1, in xfs_rtallocate_range()
170 if (error) { in xfs_rtallocate_range()
171 return error; in xfs_rtallocate_range()
177 error = xfs_rtmodify_summary(mp, tp, in xfs_rtallocate_range()
180 if (error) { in xfs_rtallocate_range()
181 return error; in xfs_rtallocate_range()
188 error = xfs_rtmodify_summary(mp, tp, in xfs_rtallocate_range()
191 if (error) { in xfs_rtallocate_range()
192 return error; in xfs_rtallocate_range()
200 error = xfs_rtmodify_summary(mp, tp, in xfs_rtallocate_range()
203 if (error) { in xfs_rtallocate_range()
204 return error; in xfs_rtallocate_range()
210 error = xfs_rtmodify_range(mp, tp, start, len, 0); in xfs_rtallocate_range()
211 return error; in xfs_rtallocate_range()
237 int error; /* error value */ in xfs_rtallocate_extent_block() local
257 error = xfs_rtcheck_range(mp, tp, i, maxlen, 1, &next, &stat); in xfs_rtallocate_extent_block()
258 if (error) { in xfs_rtallocate_extent_block()
259 return error; in xfs_rtallocate_extent_block()
265 error = xfs_rtallocate_range(mp, tp, i, maxlen, rbpp, in xfs_rtallocate_extent_block()
267 if (error) { in xfs_rtallocate_extent_block()
268 return error; in xfs_rtallocate_extent_block()
293 error = xfs_rtfind_forw(mp, tp, next, end, &i); in xfs_rtallocate_extent_block()
294 if (error) { in xfs_rtallocate_extent_block()
295 return error; in xfs_rtallocate_extent_block()
318 error = xfs_rtallocate_range(mp, tp, besti, bestlen, rbpp, rsb); in xfs_rtallocate_extent_block()
319 if (error) { in xfs_rtallocate_extent_block()
320 return error; in xfs_rtallocate_extent_block()
353 int error; /* error value */ in xfs_rtallocate_extent_exact() local
362 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact()
363 if (error) { in xfs_rtallocate_extent_exact()
364 return error; in xfs_rtallocate_extent_exact()
370 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
371 if (error) { in xfs_rtallocate_extent_exact()
372 return error; in xfs_rtallocate_extent_exact()
405 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
406 if (error) { in xfs_rtallocate_extent_exact()
407 return error; in xfs_rtallocate_extent_exact()
434 int error; /* error value */ in xfs_rtallocate_extent_near() local
459 error = xfs_rtallocate_extent_exact(mp, tp, bno, minlen, maxlen, len, in xfs_rtallocate_extent_near()
461 if (error) { in xfs_rtallocate_extent_near()
462 return error; in xfs_rtallocate_extent_near()
483 error = xfs_rtany_summary(mp, tp, log2len, mp->m_rsumlevels - 1, in xfs_rtallocate_extent_near()
485 if (error) { in xfs_rtallocate_extent_near()
486 return error; in xfs_rtallocate_extent_near()
501 error = xfs_rtallocate_extent_block(mp, tp, in xfs_rtallocate_extent_near()
504 if (error) { in xfs_rtallocate_extent_near()
505 return error; in xfs_rtallocate_extent_near()
530 error = xfs_rtany_summary(mp, tp, in xfs_rtallocate_extent_near()
533 if (error) { in xfs_rtallocate_extent_near()
534 return error; in xfs_rtallocate_extent_near()
546 error = xfs_rtallocate_extent_block(mp, in xfs_rtallocate_extent_near()
549 if (error) { in xfs_rtallocate_extent_near()
550 return error; in xfs_rtallocate_extent_near()
568 error = xfs_rtallocate_extent_block(mp, tp, in xfs_rtallocate_extent_near()
571 if (error) { in xfs_rtallocate_extent_near()
572 return error; in xfs_rtallocate_extent_near()
634 int error; /* error value */ in xfs_rtallocate_extent_size() local
659 error = xfs_rtget_summary(mp, tp, l, i, rbpp, rsb, in xfs_rtallocate_extent_size()
661 if (error) { in xfs_rtallocate_extent_size()
662 return error; in xfs_rtallocate_extent_size()
672 error = xfs_rtallocate_extent_block(mp, tp, i, maxlen, in xfs_rtallocate_extent_size()
674 if (error) { in xfs_rtallocate_extent_size()
675 return error; in xfs_rtallocate_extent_size()
718 error = xfs_rtget_summary(mp, tp, l, i, rbpp, rsb, in xfs_rtallocate_extent_size()
720 if (error) { in xfs_rtallocate_extent_size()
721 return error; in xfs_rtallocate_extent_size()
733 error = xfs_rtallocate_extent_block(mp, tp, i, in xfs_rtallocate_extent_size()
737 if (error) { in xfs_rtallocate_extent_size()
738 return error; in xfs_rtallocate_extent_size()
776 int error; /* error return value */ in xfs_growfs_rt_alloc() local
797 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtalloc, resblks, in xfs_growfs_rt_alloc()
799 if (error) in xfs_growfs_rt_alloc()
800 return error; in xfs_growfs_rt_alloc()
807 error = xfs_iext_count_may_overflow(ip, XFS_DATA_FORK, in xfs_growfs_rt_alloc()
809 if (error) in xfs_growfs_rt_alloc()
816 error = xfs_bmapi_write(tp, ip, oblocks, nblocks - oblocks, in xfs_growfs_rt_alloc()
818 if (!error && nmap < 1) in xfs_growfs_rt_alloc()
819 error = -ENOSPC; in xfs_growfs_rt_alloc()
820 if (error) in xfs_growfs_rt_alloc()
825 error = xfs_trans_commit(tp); in xfs_growfs_rt_alloc()
826 if (error) in xfs_growfs_rt_alloc()
827 return error; in xfs_growfs_rt_alloc()
838 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtzero, in xfs_growfs_rt_alloc()
840 if (error) in xfs_growfs_rt_alloc()
841 return error; in xfs_growfs_rt_alloc()
851 error = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_growfs_rt_alloc()
853 if (error) in xfs_growfs_rt_alloc()
863 error = xfs_trans_commit(tp); in xfs_growfs_rt_alloc()
864 if (error) in xfs_growfs_rt_alloc()
865 return error; in xfs_growfs_rt_alloc()
877 return error; in xfs_growfs_rt_alloc()
909 int error; /* error return value */ in xfs_growfs_rt() local
958 error = xfs_sb_validate_fsb_count(sbp, nrblocks); in xfs_growfs_rt()
959 if (error) in xfs_growfs_rt()
960 return error; in xfs_growfs_rt()
964 error = xfs_buf_read_uncached(mp->m_rtdev_targp, in xfs_growfs_rt()
967 if (error) in xfs_growfs_rt()
968 return error; in xfs_growfs_rt()
998 error = xfs_growfs_rt_alloc(mp, rbmblocks, nrbmblocks, mp->m_rbmip); in xfs_growfs_rt()
999 if (error) in xfs_growfs_rt()
1000 return error; in xfs_growfs_rt()
1001 error = xfs_growfs_rt_alloc(mp, rsumblocks, nrsumblocks, mp->m_rsumip); in xfs_growfs_rt()
1002 if (error) in xfs_growfs_rt()
1003 return error; in xfs_growfs_rt()
1049 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtfree, 0, 0, 0, in xfs_growfs_rt()
1051 if (error) in xfs_growfs_rt()
1086 error = xfs_rtcopy_summary(mp, nmp, tp); in xfs_growfs_rt()
1087 if (error) in xfs_growfs_rt()
1112 error = xfs_rtfree_range(nmp, tp, sbp->sb_rextents, in xfs_growfs_rt()
1114 if (error) { in xfs_growfs_rt()
1130 error = xfs_trans_commit(tp); in xfs_growfs_rt()
1131 if (error) in xfs_growfs_rt()
1137 if (error) in xfs_growfs_rt()
1141 error = xfs_update_secondary_sbs(mp); in xfs_growfs_rt()
1155 if (error) { in xfs_growfs_rt()
1163 return error; in xfs_growfs_rt()
1183 int error; /* error value */ in xfs_rtallocate_extent() local
1210 error = xfs_rtallocate_extent_size(mp, tp, minlen, maxlen, len, in xfs_rtallocate_extent()
1213 error = xfs_rtallocate_extent_near(mp, tp, bno, minlen, maxlen, in xfs_rtallocate_extent()
1217 if (error) in xfs_rtallocate_extent()
1218 return error; in xfs_rtallocate_extent()
1250 int error; in xfs_rtmount_init() local
1276 error = xfs_buf_read_uncached(mp->m_rtdev_targp, in xfs_rtmount_init()
1279 if (error) { in xfs_rtmount_init()
1281 return error; in xfs_rtmount_init()
1295 int error; /* error return value */ in xfs_rtmount_inodes() local
1299 error = xfs_iget(mp, NULL, sbp->sb_rbmino, 0, 0, &mp->m_rbmip); in xfs_rtmount_inodes()
1300 if (error) in xfs_rtmount_inodes()
1301 return error; in xfs_rtmount_inodes()
1304 error = xfs_iget(mp, NULL, sbp->sb_rsumino, 0, 0, &mp->m_rsumip); in xfs_rtmount_inodes()
1305 if (error) { in xfs_rtmount_inodes()
1307 return error; in xfs_rtmount_inodes()