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",
449 * to budget a bit more than to read the page from the
548 * means that part of the page contains garbage. So read the
551 dbg_gen("copied %d instead of %d, read page and repeat",
593 * populate_page - copy data nodes into a page for bulk-read.
596 * @bu: bulk-read information
604 int i = 0, nn = *n, offs = bu->zbranch[0].offs, hole = 0, read = 0;
660 read = (i << UBIFS_BLOCK_SHIFT) + len;
677 if (len && len < read)
678 memset(zaddr + len, 0, read - len);
705 * ubifs_do_bulk_read - do bulk-read.
707 * @bu: bulk-read information
708 * @page1: first page to read
710 * This function returns %1 if the bulk-read is done, otherwise %0 is returned.
729 /* Turn off bulk-read at the end of the file */
739 * together. If all the pages were like this, bulk-read would
748 * Allocate bulk-read buffer depending on how many data
749 * nodes we are going to read.
805 ubifs_warn(c, "ignoring error %d and skipping bulk-read", err);
814 * ubifs_bulk_read - determine whether to bulk-read and, if so, do it.
815 * @page: page from which to start bulk-read.
818 * bulk-read facility is designed to take advantage of that, by reading in one
820 * LEB. This function returns %1 if a bulk-read is done and %0 otherwise.
836 * Bulk-read is protected by @ui->ui_mutex, but it is an optimization,
843 /* Turn off bulk-read if we stop reading sequentially */
854 /* Three reads in a row, so switch on bulk-read */
859 * If possible, try to use pre-allocated bulk-read information, which
1172 * to read the last block.
1178 * having to read it.