tag | line | file | source code |
pre | 124 | fs/msdos/file.c | struct msdos_pre *pre, |
pre | 133 | fs/msdos/file.c | int sector = msdos_smap(inode,pre->file_sector); |
pre | 136 | fs/msdos/file.c | PRINTK (("fsector2 %d -> %d\n",pre->file_sector-1,sector)); |
pre | 137 | fs/msdos/file.c | pre->file_sector++; |
pre | 140 | fs/msdos/file.c | pre->bhlist[pre->nblist++] = bh; |
pre | 147 | fs/msdos/file.c | for (i=pre->nblist; i<MSDOS_PREFETCH; i++) pre->bhlist[i] = NULL; |
pre | 164 | fs/msdos/file.c | struct msdos_pre pre; |
pre | 194 | fs/msdos/file.c | pre.file_sector = filp->f_pos >> SECTOR_BITS; |
pre | 207 | fs/msdos/file.c | pre.nblist = 0; |
pre | 208 | fs/msdos/file.c | msdos_prefetch (inode,&pre,to_reada); |
pre | 210 | fs/msdos/file.c | pre.nolist = 0; |
pre | 211 | fs/msdos/file.c | PRINTK (("count %d ahead %d nblist %d\n",count,read_ahead[MAJOR(inode->i_dev)],pre.nblist)); |
pre | 214 | fs/msdos/file.c | struct buffer_head *bh = pre.bhlist[pre.nolist]; |
pre | 218 | fs/msdos/file.c | pre.bhlist[pre.nolist] = NULL; |
pre | 219 | fs/msdos/file.c | pre.nolist++; |
pre | 220 | fs/msdos/file.c | if (pre.nolist == MSDOS_PREFETCH/2){ |
pre | 221 | fs/msdos/file.c | memcpy (pre.bhlist,pre.bhlist+MSDOS_PREFETCH/2 |
pre | 222 | fs/msdos/file.c | ,(MSDOS_PREFETCH/2)*sizeof(pre.bhlist[0])); |
pre | 223 | fs/msdos/file.c | pre.nblist -= MSDOS_PREFETCH/2; |
pre | 224 | fs/msdos/file.c | msdos_prefetch (inode,&pre,MSDOS_PREFETCH/2); |
pre | 225 | fs/msdos/file.c | pre.nolist = 0; |
pre | 227 | fs/msdos/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
pre | 257 | fs/msdos/file.c | for (i=0; i<pre.nblist; i++) brelse (pre.bhlist[i]); |