• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ubifs/

Lines Matching defs:read

47  * read-ahead path does not lock it ("sys_read -> generic_file_aio_read ->
169 ubifs_err("cannot read page %lu of inode %lu, error %d",
452 * true, but it is better to budget more than to read
555 * means that part of the page contains garbage. So read the
558 dbg_gen("copied %d instead of %d, read page and repeat",
596 * populate_page - copy data nodes into a page for bulk-read.
599 * @bu: bulk-read information
607 int i = 0, nn = *n, offs = bu->zbranch[0].offs, hole = 0, read = 0;
656 read = (i << UBIFS_BLOCK_SHIFT) + len;
673 if (len && len < read)
674 memset(zaddr + len, 0, read - len);
701 * ubifs_do_bulk_read - do bulk-read.
703 * @bu: bulk-read information
704 * @page1: first page to read
706 * This function returns %1 if the bulk-read is done, otherwise %0 is returned.
724 /* Turn off bulk-read at the end of the file */
734 * together. If all the pages were like this, bulk-read would
743 * Allocate bulk-read buffer depending on how many data
744 * nodes we are going to read.
799 ubifs_warn("ignoring error %d and skipping bulk-read", err);
808 * ubifs_bulk_read - determine whether to bulk-read and, if so, do it.
809 * @page: page from which to start bulk-read.
812 * bulk-read facility is designed to take advantage of that, by reading in one
814 * LEB. This function returns %1 if a bulk-read is done and %0 otherwise.
830 * Bulk-read is protected by @ui->ui_mutex, but it is an optimization,
837 /* Turn off bulk-read if we stop reading sequentially */
848 /* Three reads in a row, so switch on bulk-read */
853 * If possible, try to use pre-allocated bulk-read information, which
1115 * to read the last block.
1121 * having to read it.
1524 .read = do_sync_read,