• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/cifs/

Lines Matching defs:to

21  *   along with this library; if not, write to the Free Software
56 /* we have to track num writers to the inode, since writepages
59 cifs_writepages chose to use */
72 /* GENERIC_ALL is too much permission to request
95 /* all arguments to this function must be checked for validity in caller */
104 /* want handles we can use to read with first
105 in the list so we do not have to walk the
106 list to search for one in prepare_write */
117 no need to discard cache data */
131 /* BB no need to lock inode until after invalidate
236 *? O_SYNC is a reasonable match to CIFS writethrough flag
258 able to simply do a filemap_fdatawrite/filemap_fdatawait first */
304 /* time to set mode which we can not set earlier due to
329 /* Try to reacquire byte range locks that were released when session */
330 /* to server was lost */
387 to get called and if the server was down that means we end up here,
407 /* Can not refresh inode by passing in file_info buf to be returned
409 since file might have write behind data that needs to be flushed
430 go to server to get inode info */
440 } /* else we are writing out data to server already
441 and could deadlock if we tried to flush data, and
444 we can not go to the server to get the new inod
485 /* no sense reconnecting to close a file that is
491 /* Give write a better chance to get to
493 want to add a wait_q here as it would
496 but this should give enough time to
682 /* BB add code here to normalize offset and length to
715 rc = 0; /* do not change lock type to unlock
725 to do since we do not know what it is */
802 (" write %d bytes to offset %lld of %s", write_size,
825 we blocked so return what we managed to write */
838 reopen_file not to flush data to server
901 cFYI(1,("write %zd bytes to offset %lld of %s", write_size,
924 while we blocked so return what we managed to
938 reopen_file not to flush data to
1008 /* Having a null inode here (because mapping->host was set to zero by
1009 the VFS or MM) should not happen but we had reports of on oops (due to
1010 it being zero) during stress testcases so we need to check for it */
1013 cERROR(1,("Null inode passed to cifs_writeable_file"));
1031 /* dangerous to hold up writepages with retry */
1049 static int cifs_partialpagewrite(struct page *page, unsigned from, unsigned to)
1072 if ((to > PAGE_CACHE_SIZE) || (from > to)) {
1083 /* check to make sure that we are not extending the file */
1084 if (mapping->host->i_size - offset < (loff_t)to)
1085 to = (unsigned)(mapping->host->i_size - offset);
1090 to-from, &offset);
1136 * If wsize is smaller that the page cache size, default to writing
1194 * invalidated (changing page->mapping to NULL), or even
1195 * swizzled back from swapper_space to tmpfs file
1268 * we used to still be valid
1314 * We hit the last page and there is more work to be done: wrap
1315 * back to the start of the file
1338 cFYI(1, ("ppw - page not up to date"));
1344 * A writepage() implementation always needs to do either this,
1349 * to fail to update with the state of the page correctly.
1362 unsigned offset, unsigned to)
1367 loff_t position = ((loff_t)page->index << PAGE_CACHE_SHIFT) + to;
1371 cFYI(1, ("commit write for page %p up to position %lld for %d",
1372 page, position, to));
1381 if (to < offset) {
1382 cFYI(1, ("Illegal offsets, can not copy from %d to %d",
1383 offset, to));
1393 rc = cifs_write(file, page_data + offset, to-offset,
1460 coalesce into contiguous 16K (or smaller) chunks to write to server
1461 send to server (prefer in parallel)
1467 if (!rc) /* reset wb rc if we were able to write out dirty pages */
1589 /* For windows me and 9x we do not want to request more
1634 cFYI(1, ("Validation prior to mmap failed, error=%d", rc));
1748 /* Read size needs to be in multiples of one page */
1794 /* BB do we need to verify this common case ?
1820 /* need to free smb_read_data buf before exit */
1890 /* We do not want to update the file size from server for inodes
1891 open for write - to avoid races with writepage extending
1894 but this is tricky to do without racing with writebehind
1907 this handle go free and allow it to
1913 /* since no page cache to corrupt on directio
1927 unsigned from, unsigned to)
1933 cFYI(1, ("prepare write for page %p from %d to %d",page,from,to));
1937 /* If we are writing a full page it will be up to date,
1938 no need to read from the server */
1939 if ((to == PAGE_CACHE_SIZE) && (from == 0)) {
1948 ((from == 0) && (offset + to) >= i_size)) {
1950 * We don't need to read data beyond the end of the file.
1957 if (to < PAGE_CACHE_SIZE)
1958 memset(kaddr + to, 0, PAGE_CACHE_SIZE - to);
1967 but how would we lock it to prevent close of that handle
1972 /* we do not need to pass errors back
1973 e.g. if we do not have read access to the file
1992 * cifs_readpages requires the server to support a buffer large enough to
1994 * to leave cifs_readpages out of the address space operations.