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

Lines Matching refs:to

1 /* handling of writes to regular files and writing back to the server
42 /* if an fsync rises to the front of the queue then wake it
65 * dispose of a reference to a writeback record
110 * prepare a page for being written to
113 struct key *key, unsigned offset, unsigned to)
122 if (offset == 0 && to == PAGE_SIZE)
134 if (to < PAGE_SIZE)
135 memset(p + to, 0, PAGE_SIZE - to);
148 tail = max(eof, to);
158 if (offset > 0 || eof > to) {
159 /* need to fill one or two bits that aren't going to be written
161 start = (offset > 0) ? 0 : to;
162 stop = (eof > to) ? eof : offset;
165 offset, to, eof, start, len);
174 * prepare to perform part of a write to a page
179 unsigned offset, unsigned to)
188 vnode->fid.vid, vnode->fid.vnode, page->index, offset, to);
196 candidate->to_last = to;
202 _debug("not up to date");
203 ret = afs_prepare_page(vnode, page, key, offset, to);
226 * append this page to */
247 if (index == wb->last && to > wb->to_last)
248 wb->to_last = to;
258 wb->to_last = to;
266 /* the page is currently bound to another context, so if it's dirty we
267 * need to flush it before we can use the new context */
290 * finalise part of a write to a page
293 unsigned offset, unsigned to)
299 vnode->fid.vid, vnode->fid.vnode, page->index, offset, to);
302 maybe_i_size += to;
367 unsigned n, offset, to;
439 to = (last == wb->last) ? wb->to_last : PAGE_SIZE;
441 _debug("write back %lx[%u..] to %lx[..%u]", first, offset, last, to);
443 ret = afs_vnode_store_data(wb, first, last, offset, to);
481 * write a page back to the server
511 * write a region of pages back to the server
541 * (changing page->mapping to NULL), or even swizzled back from
542 * swapper_space to tmpfs file mapping
591 * write some of the pending data back to the server
654 * completion of write to server
710 * write to an AFS file
726 "AFS: Attempt to write to active swap file!\n");
751 * flush the vnode to the fileserver
812 /* push all the outstanding writebacks to the server */
820 /* wait for the preceding writes to actually complete */