• Home
  • Raw
  • Download

Lines Matching refs:error

81 	int error = 0;  in ea_foreach_i()  local
95 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i()
96 if (error) in ea_foreach_i()
97 return error; in ea_foreach_i()
107 return error; in ea_foreach_i()
118 int error; in ea_foreach() local
120 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, 0, &bh); in ea_foreach()
121 if (error) in ea_foreach()
122 return error; in ea_foreach()
125 error = ea_foreach_i(ip, bh, ea_call, data); in ea_foreach()
130 error = -EIO; in ea_foreach()
144 error = gfs2_meta_read(ip->i_gl, bn, DIO_WAIT, 0, &eabh); in ea_foreach()
145 if (error) in ea_foreach()
147 error = ea_foreach_i(ip, eabh, ea_call, data); in ea_foreach()
149 if (error) in ea_foreach()
154 return error; in ea_foreach()
192 int error; in gfs2_ea_find() local
201 error = ea_foreach(ip, ea_find_i, &ef); in gfs2_ea_find()
202 if (error > 0) in gfs2_ea_find()
205 return error; in gfs2_ea_find()
237 int error; in ea_dealloc_unstuffed() local
239 error = gfs2_rindex_update(sdp); in ea_dealloc_unstuffed()
240 if (error) in ea_dealloc_unstuffed()
241 return error; in ea_dealloc_unstuffed()
262 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &rg_gh); in ea_dealloc_unstuffed()
263 if (error) in ea_dealloc_unstuffed()
264 return error; in ea_dealloc_unstuffed()
266 error = gfs2_trans_begin(sdp, rgd->rd_length + RES_DINODE + in ea_dealloc_unstuffed()
268 if (error) in ea_dealloc_unstuffed()
314 return error; in ea_dealloc_unstuffed()
321 int error; in ea_remove_unstuffed() local
323 error = gfs2_rindex_update(GFS2_SB(&ip->i_inode)); in ea_remove_unstuffed()
324 if (error) in ea_remove_unstuffed()
325 return error; in ea_remove_unstuffed()
327 error = gfs2_quota_hold(ip, NO_UID_QUOTA_CHANGE, NO_GID_QUOTA_CHANGE); in ea_remove_unstuffed()
328 if (error) in ea_remove_unstuffed()
331 error = ea_dealloc_unstuffed(ip, bh, ea, prev, (leave) ? &error : NULL); in ea_remove_unstuffed()
335 return error; in ea_remove_unstuffed()
403 int error; in gfs2_listxattr() local
411 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); in gfs2_listxattr()
412 if (error) in gfs2_listxattr()
413 return error; in gfs2_listxattr()
418 error = ea_foreach(ip, ea_list_i, &ei); in gfs2_listxattr()
419 if (!error) in gfs2_listxattr()
420 error = ei.ei_size; in gfs2_listxattr()
425 return error; in gfs2_listxattr()
448 int error = 0; in gfs2_iter_unstuffed() local
457 error = gfs2_meta_read(ip->i_gl, be64_to_cpu(*dataptrs), 0, 0, in gfs2_iter_unstuffed()
459 if (error) { in gfs2_iter_unstuffed()
468 error = gfs2_meta_wait(sdp, bh[x]); in gfs2_iter_unstuffed()
469 if (error) { in gfs2_iter_unstuffed()
477 error = -EIO; in gfs2_iter_unstuffed()
501 return error; in gfs2_iter_unstuffed()
525 int error; in gfs2_xattr_acl_get() local
529 error = gfs2_ea_find(ip, GFS2_EATYPE_SYS, name, &el); in gfs2_xattr_acl_get()
530 if (error) in gfs2_xattr_acl_get()
531 return error; in gfs2_xattr_acl_get()
539 error = -ENOMEM; in gfs2_xattr_acl_get()
543 error = gfs2_ea_get_copy(ip, &el, data, len); in gfs2_xattr_acl_get()
544 if (error < 0) in gfs2_xattr_acl_get()
550 return error; in gfs2_xattr_acl_get()
568 int error; in __gfs2_xattr_get() local
575 error = gfs2_ea_find(ip, type, name, &el); in __gfs2_xattr_get()
576 if (error) in __gfs2_xattr_get()
577 return error; in __gfs2_xattr_get()
581 error = gfs2_ea_get_copy(ip, &el, buffer, size); in __gfs2_xattr_get()
583 error = GFS2_EA_DATA_LEN(el.el_ea); in __gfs2_xattr_get()
586 return error; in __gfs2_xattr_get()
627 int error; in ea_alloc_blk() local
629 error = gfs2_alloc_blocks(ip, &block, &n, 0, NULL); in ea_alloc_blk()
630 if (error) in ea_alloc_blk()
631 return error; in ea_alloc_blk()
665 int error; in ea_write() local
691 error = gfs2_alloc_blocks(ip, &block, &n, 0, NULL); in ea_write()
692 if (error) in ea_write()
693 return error; in ea_write()
729 int error; in ea_alloc_skeleton() local
731 error = gfs2_rindex_update(GFS2_SB(&ip->i_inode)); in ea_alloc_skeleton()
732 if (error) in ea_alloc_skeleton()
733 return error; in ea_alloc_skeleton()
735 error = gfs2_quota_lock_check(ip, &ap); in ea_alloc_skeleton()
736 if (error) in ea_alloc_skeleton()
737 return error; in ea_alloc_skeleton()
739 error = gfs2_inplace_reserve(ip, &ap); in ea_alloc_skeleton()
740 if (error) in ea_alloc_skeleton()
743 error = gfs2_trans_begin(GFS2_SB(&ip->i_inode), in ea_alloc_skeleton()
746 if (error) in ea_alloc_skeleton()
749 error = skeleton_call(ip, er, private); in ea_alloc_skeleton()
750 if (error) in ea_alloc_skeleton()
762 return error; in ea_alloc_skeleton()
769 int error; in ea_init_i() local
771 error = ea_alloc_blk(ip, &bh); in ea_init_i()
772 if (error) in ea_init_i()
773 return error; in ea_init_i()
776 error = ea_write(ip, GFS2_EA_BH2FIRST(bh), er); in ea_init_i()
780 return error; in ea_init_i()
865 int error; in ea_set_simple_noalloc() local
867 error = gfs2_trans_begin(GFS2_SB(&ip->i_inode), RES_DINODE + 2 * RES_EATTR, 0); in ea_set_simple_noalloc()
868 if (error) in ea_set_simple_noalloc()
869 return error; in ea_set_simple_noalloc()
885 return error; in ea_set_simple_noalloc()
893 int error; in ea_set_simple_alloc() local
900 error = ea_write(ip, ea, er); in ea_set_simple_alloc()
901 if (error) in ea_set_simple_alloc()
902 return error; in ea_set_simple_alloc()
917 int error; in ea_set_simple() local
926 error = ea_remove_unstuffed(ip, bh, ea, prev, 1); in ea_set_simple()
927 if (error) in ea_set_simple()
928 return error; in ea_set_simple()
937 error = ea_set_simple_noalloc(ip, bh, ea, es); in ea_set_simple()
938 if (error) in ea_set_simple()
939 return error; in ea_set_simple()
948 error = ea_alloc_skeleton(ip, es->es_er, blks, in ea_set_simple()
950 if (error) in ea_set_simple()
951 return error; in ea_set_simple()
963 int error; in ea_set_block() local
969 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, 0, in ea_set_block()
971 if (error) in ea_set_block()
972 return error; in ea_set_block()
975 error = -EIO; in ea_set_block()
987 error = -ENOSPC; in ea_set_block()
995 error = gfs2_alloc_blocks(ip, &blk, &n, 0, NULL); in ea_set_block()
996 if (error) in ea_set_block()
997 return error; in ea_set_block()
1013 error = ea_alloc_blk(ip, &newbh); in ea_set_block()
1014 if (error) in ea_set_block()
1018 error = ea_write(ip, GFS2_EA_BH2FIRST(newbh), er); in ea_set_block()
1020 if (error) in ea_set_block()
1028 return error; in ea_set_block()
1037 int error; in ea_set_i() local
1049 error = ea_foreach(ip, ea_set_simple, &es); in ea_set_i()
1050 if (error > 0) in ea_set_i()
1052 if (error) in ea_set_i()
1053 return error; in ea_set_i()
1079 int error; in ea_remove_stuffed() local
1081 error = gfs2_trans_begin(GFS2_SB(&ip->i_inode), RES_DINODE + RES_EATTR, 0); in ea_remove_stuffed()
1082 if (error) in ea_remove_stuffed()
1083 return error; in ea_remove_stuffed()
1104 return error; in ea_remove_stuffed()
1123 int error; in gfs2_xattr_remove() local
1128 error = gfs2_ea_find(ip, type, name, &el); in gfs2_xattr_remove()
1129 if (error) in gfs2_xattr_remove()
1130 return error; in gfs2_xattr_remove()
1135 error = ea_remove_stuffed(ip, &el); in gfs2_xattr_remove()
1137 error = ea_remove_unstuffed(ip, el.el_bh, el.el_ea, el.el_prev, 0); in gfs2_xattr_remove()
1141 return error; in gfs2_xattr_remove()
1165 int error; in __gfs2_xattr_set() local
1173 error = gfs2_xattr_remove(ip, type, name); in __gfs2_xattr_set()
1174 if (error == -ENODATA && !(flags & XATTR_REPLACE)) in __gfs2_xattr_set()
1175 error = 0; in __gfs2_xattr_set()
1176 return error; in __gfs2_xattr_set()
1188 error = gfs2_ea_find(ip, type, name, &el); in __gfs2_xattr_set()
1189 if (error) in __gfs2_xattr_set()
1190 return error; in __gfs2_xattr_set()
1198 error = -EEXIST; in __gfs2_xattr_set()
1201 error = ea_set_i(ip, type, name, value, size, &el); in __gfs2_xattr_set()
1202 if (!error && unstuffed) in __gfs2_xattr_set()
1207 return error; in __gfs2_xattr_set()
1210 error = -ENODATA; in __gfs2_xattr_set()
1212 error = ea_set_i(ip, type, name, value, size, NULL); in __gfs2_xattr_set()
1214 return error; in __gfs2_xattr_set()
1259 int error; in ea_dealloc_indirect() local
1261 error = gfs2_rindex_update(sdp); in ea_dealloc_indirect()
1262 if (error) in ea_dealloc_indirect()
1263 return error; in ea_dealloc_indirect()
1267 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, 0, &indbh); in ea_dealloc_indirect()
1268 if (error) in ea_dealloc_indirect()
1269 return error; in ea_dealloc_indirect()
1272 error = -EIO; in ea_dealloc_indirect()
1308 error = gfs2_glock_nq_m(rlist.rl_rgrps, rlist.rl_ghs); in ea_dealloc_indirect()
1309 if (error) in ea_dealloc_indirect()
1312 error = gfs2_trans_begin(sdp, rg_blocks + RES_DINODE + RES_INDIRECT + in ea_dealloc_indirect()
1314 if (error) in ea_dealloc_indirect()
1349 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_indirect()
1350 if (!error) { in ea_dealloc_indirect()
1364 return error; in ea_dealloc_indirect()
1373 int error; in ea_dealloc_block() local
1375 error = gfs2_rindex_update(sdp); in ea_dealloc_block()
1376 if (error) in ea_dealloc_block()
1377 return error; in ea_dealloc_block()
1385 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in ea_dealloc_block()
1386 if (error) in ea_dealloc_block()
1387 return error; in ea_dealloc_block()
1389 error = gfs2_trans_begin(sdp, RES_RG_BIT + RES_DINODE + RES_STATFS + in ea_dealloc_block()
1391 if (error) in ea_dealloc_block()
1399 error = gfs2_meta_inode_buffer(ip, &dibh); in ea_dealloc_block()
1400 if (!error) { in ea_dealloc_block()
1410 return error; in ea_dealloc_block()
1422 int error; in gfs2_ea_dealloc() local
1424 error = gfs2_rindex_update(GFS2_SB(&ip->i_inode)); in gfs2_ea_dealloc()
1425 if (error) in gfs2_ea_dealloc()
1426 return error; in gfs2_ea_dealloc()
1428 error = gfs2_quota_hold(ip, NO_UID_QUOTA_CHANGE, NO_GID_QUOTA_CHANGE); in gfs2_ea_dealloc()
1429 if (error) in gfs2_ea_dealloc()
1430 return error; in gfs2_ea_dealloc()
1432 error = ea_foreach(ip, ea_dealloc_unstuffed, NULL); in gfs2_ea_dealloc()
1433 if (error) in gfs2_ea_dealloc()
1437 error = ea_dealloc_indirect(ip); in gfs2_ea_dealloc()
1438 if (error) in gfs2_ea_dealloc()
1442 error = ea_dealloc_block(ip); in gfs2_ea_dealloc()
1446 return error; in gfs2_ea_dealloc()