Lines Matching refs:old_idx
1393 int old_idx, int in_inode) in xattr_array_update() argument
1410 if (old_idx >= 0 && old_idx < h->ibody_count) { in xattr_array_update()
1412 if (!h->attrs[old_idx].ea_ino) in xattr_array_update()
1414 h->attrs[old_idx].value_len); in xattr_array_update()
1418 if (old_idx < 0) { in xattr_array_update()
1425 ret = xattr_update_entry(h->fs, &h->attrs[old_idx], name, in xattr_array_update()
1429 if (h->ibody_count <= old_idx) { in xattr_array_update()
1431 tmp = h->attrs[old_idx]; in xattr_array_update()
1434 (old_idx - h->ibody_count) * sizeof(*h->attrs)); in xattr_array_update()
1441 if (h->ibody_count <= old_idx) { in xattr_array_update()
1443 if (!h->attrs[old_idx].ea_ino) in xattr_array_update()
1445 EXT2_EXT_ATTR_SIZE(h->attrs[old_idx].value_len); in xattr_array_update()
1451 if (old_idx >= 0) { in xattr_array_update()
1453 ret = xattr_update_entry(h->fs, &h->attrs[old_idx], name, in xattr_array_update()
1457 if (old_idx < h->ibody_count) { in xattr_array_update()
1465 tmp = h->attrs[old_idx]; in xattr_array_update()
1466 memmove(h->attrs + old_idx, h->attrs + old_idx + 1, in xattr_array_update()
1467 (new_idx - old_idx) * sizeof(*h->attrs)); in xattr_array_update()
1537 int old_idx = -1; in ext2fs_xattr_set() local
1564 old_idx = x - h->attrs; in ext2fs_xattr_set()
1594 if (h->ibody_count <= old_idx) { in ext2fs_xattr_set()
1599 0 /* block_free */, old_idx, in ext2fs_xattr_set()
1618 block_free, old_idx, in_inode); in ext2fs_xattr_set()
1622 block_free, old_idx, 1 /* in_inode */); in ext2fs_xattr_set()