• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ntfs/

Lines Matching refs:loc

200  * @loc:	append the new runlist @src after this element in @dst
202 * Append the runlist @src after element @loc in @dst. Merge the right end of
219 int dsize, runlist_element *src, int ssize, int loc)
228 if ((loc + 1) < dsize)
229 right = ntfs_are_rl_mergeable(src + ssize - 1, dst + loc + 1);
242 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1);
245 marker = loc + ssize + 1;
248 ntfs_rl_mm(dst, marker, loc + 1 + right, dsize - (loc + 1 + right));
249 ntfs_rl_mc(dst, loc + 1, src, 0, ssize);
252 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn;
267 * @loc: insert the new runlist @src before this element in @dst
269 * Insert the runlist @src before element @loc in the runlist @dst. Merge the
286 int dsize, runlist_element *src, int ssize, int loc)
299 if (loc == 0)
304 left = ntfs_are_rl_mergeable(dst + loc - 1, src);
306 merged_length = dst[loc - 1].length;
310 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length);
324 __ntfs_rl_merge(dst + loc - 1, src);
327 * Nominally, @marker equals @loc + @ssize, i.e. location + number of
332 marker = loc + ssize - left + disc;
335 ntfs_rl_mm(dst, marker, loc, dsize - loc);
336 ntfs_rl_mc(dst, loc + disc, src, left, ssize - left);
346 if (loc > 0) {
347 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length;
348 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn;
350 dst[loc].vcn = 0;
351 dst[loc].length = dst[loc + 1].vcn;
353 dst[loc].lcn = LCN_RL_NOT_MAPPED;
364 * @loc: index in runlist @dst to overwrite with @src
366 * Replace the runlist element @dst at @loc with @src. Merge the left and
382 int dsize, runlist_element *src, int ssize, int loc)
394 if ((loc + 1) < dsize)
395 right = ntfs_are_rl_mergeable(src + ssize - 1, dst + loc + 1);
396 if (loc > 0)
397 left = ntfs_are_rl_mergeable(dst + loc - 1, src);
415 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1);
417 __ntfs_rl_merge(dst + loc - 1, src);
422 * Nominally, @tail equals @loc + 1, i.e. location, skipping the
426 tail = loc + right + 1;
430 * Nominally, @marker equals @loc + @ssize, i.e. location + number of
434 marker = loc + ssize - left;
438 ntfs_rl_mc(dst, loc, src, left, ssize - left);
452 * @loc: index in runlist @dst at which to split and insert @src
454 * Split the runlist @dst at @loc into two and insert @new in between the two
471 runlist_element *src, int ssize, int loc)
486 ntfs_rl_mm(dst, loc + 1 + ssize, loc, dsize - loc);
487 ntfs_rl_mc(dst, loc + 1, src, 0, ssize);
490 dst[loc].length = dst[loc+1].vcn - dst[loc].vcn;
491 dst[loc+ssize+1].vcn = dst[loc+ssize].vcn + dst[loc+ssize].length;
492 dst[loc+ssize+1].length = dst[loc+ssize+2].vcn - dst[loc+ssize+1].vcn;