Lines Matching defs:xo
141 static int set_object_id_index(ntfs_inode *ni, ntfs_index_context *xo,
174 ntfs_index_ctx_reinit(xo);
175 return (ntfs_ie_add(xo,(INDEX_ENTRY*)&indx));
192 ntfs_index_context *xo;
204 xo = ntfs_index_ctx_get(ni, objid_index_name, 2);
205 if (!xo) {
209 xo = (ntfs_index_context*)NULL;
210 return (xo);
228 ntfs_index_context *xo;
233 xo = open_object_id_index(ni->vol);
234 if (xo) {
237 sizeof(OBJECT_ID_INDEX_KEY), xo)) {
238 entry = (struct OBJECT_ID_INDEX*)xo->entry;
255 xoni = xo->ni;
256 ntfs_index_ctx_put(xo);
271 static int remove_object_id_index(ntfs_attr *na, ntfs_index_context *xo,
287 sizeof(OBJECT_ID_INDEX_KEY), xo)) {
288 entry = (struct OBJECT_ID_INDEX*)xo->entry;
298 if (ntfs_index_rm(xo))
323 static int update_object_id(ntfs_inode *ni, ntfs_index_context *xo,
338 oldsize = remove_object_id_index(na,xo,&old_attr);
361 && set_object_id_index(ni,xo,&old_attr)) {
426 ntfs_index_context *xo;
439 xo = open_object_id_index(ni->vol);
440 if (xo) {
441 if (remove_object_id_index(na,xo,&old_attr) < 0)
443 xoni = xo->ni;
444 ntfs_index_entry_mark_dirty(xo);
446 ntfs_index_ctx_put(xo);
523 ntfs_index_context *xo;
528 xo = open_object_id_index(ni->vol);
529 if (xo) {
533 sizeof(OBJECT_ID_INDEX_KEY), xo))
534 || (MREF_LE(((struct OBJECT_ID_INDEX*)xo->entry)
536 ntfs_index_ctx_reinit(xo);
540 res = update_object_id(ni,xo,
549 xoni = xo->ni;
550 ntfs_index_entry_mark_dirty(xo);
552 ntfs_index_ctx_put(xo);
576 ntfs_index_context *xo;
589 xo = open_object_id_index(ni->vol);
590 if (xo) {
591 oldsize = remove_object_id_index(na,xo,
607 set_object_id_index(ni, xo,
615 xoni = xo->ni;
616 ntfs_index_entry_mark_dirty(xo);
618 ntfs_index_ctx_put(xo);