Lines Matching defs:read
35 * read-ahead path does not lock it ("sys_read -> generic_file_aio_read ->
166 ubifs_err(c, "cannot read page %lu of inode %lu, error %d",
448 * to budget a bit more than to read the page from the
547 * means that part of the page contains garbage. So read the
550 dbg_gen("copied %d instead of %d, read page and repeat",
592 * populate_page - copy data nodes into a page for bulk-read.
595 * @bu: bulk-read information
603 int i = 0, nn = *n, offs = bu->zbranch[0].offs, hole = 0, read = 0;
659 read = (i << UBIFS_BLOCK_SHIFT) + len;
676 if (len && len < read)
677 memset(zaddr + len, 0, read - len);
704 * ubifs_do_bulk_read - do bulk-read.
706 * @bu: bulk-read information
707 * @page1: first page to read
709 * This function returns %1 if the bulk-read is done, otherwise %0 is returned.
728 /* Turn off bulk-read at the end of the file */
738 * together. If all the pages were like this, bulk-read would
747 * Allocate bulk-read buffer depending on how many data
748 * nodes we are going to read.
804 ubifs_warn(c, "ignoring error %d and skipping bulk-read", err);
813 * ubifs_bulk_read - determine whether to bulk-read and, if so, do it.
814 * @page: page from which to start bulk-read.
817 * bulk-read facility is designed to take advantage of that, by reading in one
819 * LEB. This function returns %1 if a bulk-read is done and %0 otherwise.
835 * Bulk-read is protected by @ui->ui_mutex, but it is an optimization,
842 /* Turn off bulk-read if we stop reading sequentially */
853 /* Three reads in a row, so switch on bulk-read */
858 * If possible, try to use pre-allocated bulk-read information, which
1173 * to read the last block.
1179 * having to read it.