Changes by: antona
Update of /cvsroot/linux-ntfs/ntfs-driver-tng/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv30632
Modified Files:
rl.c
Log Message:
bye bye miss american pie, er, dstart anyway
Index: rl.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfs-driver-tng/scripts/rl.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -U2 -r1.17 -r1.18
--- rl.c 12 Feb 2002 17:27:39 -0000 1.17
+++ rl.c 12 Feb 2002 21:36:48 -0000 1.18
@@ -360,5 +360,5 @@
run_list *nrl; /* New run list. */
int di, si; /* Current index into @[ds]rl. */
- int dstart, sstart; /* First index with lcn > LCN_RL_NOT_MAPPED. */
+ int sstart; /* First index with lcn > LCN_RL_NOT_MAPPED. */
int dins; /* Index into @drl at which to insert @srl. */
int dend, send; /* Last index into @[ds]rl. */
@@ -405,17 +405,4 @@
while (srl[si].length && srl[si].lcn < (LCN)LCN_HOLE)
si++;
- /*
- * Can this happen for drl? - Not initially, but it will be possible in
- * the future, as I plan to cut down on the amount of work done by read
- * inode and one optimization would be not to bother reading in the
- * run list at all, i.e. the first read of the file will cause it to
- * be read but if that first read occurs somewhere into the file, the
- * first mapped part of the run list might well not be the first
- * extent of the attribute in which case exactly this code triggers. It
- * is a different question whether the current code would actually cope
- * with this... (AIA)
- */
- while (drl[di].length && drl[di].lcn < (LCN)LCN_HOLE)
- di++;
/* Can't have an entirely unmapped srl run_list. */
@@ -424,5 +411,4 @@
/* Record the starting points. */
sstart = si;
- dstart = di;
/*
@@ -472,5 +458,5 @@
#if 0
- ntfs_debug("dstart = %i, dfinal = %i, dend = %i\n", dstart, dfinal, dend);
+ ntfs_debug("dfinal = %i, dend = %i\n", dfinal, dend);
ntfs_debug("sstart = %i, sfinal = %i, send = %i\n", sstart, sfinal, send);
ntfs_debug("start = %i, finish = %i\n", start, finish);
|