• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/reiserfs/

Lines Matching defs:item

23 /* copy copy_count entries from source directory item to dest buffer (creating new item if needed) */
29 int item_num_in_dest; /* either the number of target item,
30 or if we must create a new item,
31 the number of the item we will
35 int copy_records_len; /* length of all records in item to be copied */
40 RFALSE(!is_direntry_le_ih(ih), "vs-10000: item must be directory item");
62 /* if there are no items in dest or the first/last item in dest is not item of the same directory */
70 /* create new item in dest */
73 /* form item header */
76 /* calculate item len */
88 /* no entries will be copied to this item in this function */
90 /* this item is not yet valid, but we want I_IS_DIRECTORY_ITEM to return 1 for it, so we -1 */
96 /* insert item into dest buffer */
122 /* Copy the first (if last_first == FIRST_TO_LAST) or last (last_first == LAST_TO_FIRST) item or
138 /* if ( DEST is empty or first item of SOURCE and last item of DEST are the items of different objects
139 or of different types ) then there is no need to treat this item differently from the other items
149 "vs-10010: item can not have empty length");
160 /* copy part of the body of the first item of SOURCE to the end of the body of the last item of the DEST
161 part defined by 'bytes_or_entries'; if bytes_or_entries == -1 copy whole body; don't create new item header
179 /* merge first item (or its part) of src buffer with the last
180 item of dest buffer. Both are of the same file */
187 "vs-10030: merge to left: last unformatted node of non-last indirect item %h must have zerto free space",
196 /* copy boundary item to right (last_first == LAST_TO_FIRST) */
198 /* ( DEST is empty or last item of SOURCE and first item of DEST
210 /* bytes_or_entries = entries number in last item body of SOURCE */
220 /* copy part of the body of the last item of SOURCE to the begin of the body of the first item of the DEST;
221 part defined by 'bytes_or_entries'; if byte_or_entriess == -1 copy whole body; change first item key of the DEST;
222 don't create new item header
226 "vs-10040: merge to right: last unformatted node of non-last indirect item must be filled entirely (%h)",
230 /* bytes_or_entries = length of last item body of SOURCE */
237 /* change first item key of the DEST */
240 /* item becomes non-mergeable */
241 /* or mergeable if left item was */
244 /* merge to right only part of item */
250 /* change first item key of the DEST */
280 * last_first == FIRST_TO_LAST means, that we copy cpy_num items beginning from first-th item in src to tail of dest
281 * last_first == LAST_TO_FIRST means, that we copy cpy_num items beginning from first-th item in src to head of dest
314 /* we will insert items before 0-th or nr-th item in dest buffer. It depends of last_first parameter */
317 /* location of head of first new item */
327 /* copy item headers */
333 /* location of unmovable item */
357 /* sizes, item number */
379 /* This function splits the (liquid) item into two items (useful when
380 shifting part of an item into another node.) */
389 "vs-10170: bytes == - 1 means: do not split item");
392 /* if ( if item in position item_num in buffer SOURCE is directory item ) */
400 /* copy part of the body of the item number 'item_num' of SOURCE to the end of the DEST
401 part defined by 'cpy_bytes'; create new item header; change old item_header (????);
409 "vs-10180: when whole indirect item is bottle to left neighbor, it must have free_space==0 (not %lu)",
415 "vs-10190: bad mergeability of item %h", ih);
421 /* if ( if item in position item_num in buffer SOURCE is directory item ) */
431 /* copy part of the body of the item number 'item_num' of SOURCE to the begin of the DEST
432 part defined by 'cpy_bytes'; create new item header;
446 /* indirect item */
448 "vs-10200: ih->ih_free_space must be 0 when indirect item will be appended");
458 /* set item length */
473 From last item copy cpy_num bytes for regular item and cpy_num directory entries for
474 directory item. */
501 /* copy the first item or it part or nothing to the end of the DEST (i = leaf_copy_boundary_item(DEST,SOURCE,0,bytes)) */
516 /* copy part of the item which number is cpy_num+pos-1 to the end of the DEST */
528 /* copy the last item or it part or nothing to the begin of the DEST (i = leaf_copy_boundary_item(DEST,SOURCE,1,bytes)); */
545 /* copy part of the item which number is pos to the begin of the DEST */
636 /* copy mov_num items and mov_bytes of the (mov_num-1)th item to
660 /* Shift shift_num items (and shift_bytes of last shifted item if shift_bytes != -1)
698 "vs-10280: item must be mergeable");
731 the first item. Part defined by del_bytes. Don't delete first item header
733 the last item . Part defined by del_bytes. Don't delete last item header.
746 "10165: invalid number of first item to be deleted (%d) or "
760 /* delete del_num items beginning from item in position first */
764 /* delete del_num-1 items beginning from item in position first */
767 /* delete the part of the first item of the bh
768 do not delete item header
775 /* delete del_num-1 items beginning from item in position first+1 */
781 /* the last item is directory */
782 /* len = numbers of directory entries in this item */
785 /* len = body len of item */
788 /* delete the part of the last item of the bh
789 do not delete item header
797 /* insert item into the leaf node in position before */
816 "vs-10170: not enough free space in block %z, new item %h",
819 "vs-10172: zero number == %d, item length == %d",
822 /* get item new item must be inserted before */
825 /* prepare space for the body of new item */
843 /* insert item header */
853 /* sizes, free space, item number */
870 /* paste paste_size bytes to affected_item_num-th item.
871 When item is a directory, this only prepare space for new entries */
904 /* item to be appended */
928 /* paste data in the head of item */
960 /* cuts DEL_COUNT entries beginning from FROM-th entry. Directory item
962 necessary. Return value is size of removed part of directory item
967 char *item;
974 /* make sure, that item is directory and there are enough entries to
976 RFALSE(!is_direntry_le_ih(ih), "10180: item is not directory item");
978 "10185: item contains not enough entries: entry_cout = %d, from = %d, to delete = %d",
984 /* first byte of item */
985 item = bh->b_data + ih_location(ih);
996 prev_record = item + prev_record_offset;
1019 prev_record, item + ih_item_len(ih) - prev_record);
1024 /* when cut item is part of regular file
1028 when cut item is part of directory
1045 /* item head of truncated item */
1054 "when 0-th enrty of item is cut, that item must be first in the node, not %d-th",
1056 /* change item key by key of first entry in the item */
1061 /* item is direct or indirect */
1062 RFALSE(is_statdata_le_ih(ih), "10195: item is stat data");
1068 /* shift item body to left if cut is from the head of item */
1074 /* change key of item */
1091 /* location of the last item */
1094 /* location of the item, which is remaining at the same place */
1101 /* change item length */
1127 /* delete del_num items from buffer starting from the first'th item */
1161 /* location of unmovable item */
1171 /* delete item headers */
1174 /* change item location */
1180 /* sizes, item number */
1198 /* paste new_entry_count entries (new_dehs, records) into position before to item_num-th item */
1207 char *item;
1218 /* make sure, that item is directory, and there are enough records in it */
1219 RFALSE(!is_direntry_le_ih(ih), "10225: item is not directory item");
1224 /* first byte of dest item */
1225 item = bh->b_data + ih_location(ih);
1232 item +
1252 item + (ih_item_len(ih) - paste_size) - insert_point);
1274 item));
1277 /* change item key if necessary (when we paste before 0-th entry */
1297 "directory item (%h) "
1303 "directory item (%h) "