1. 07 6月, 2014 2 次提交
    • J
      nfsd4: kill READ32 · 06553991
      J. Bruce Fields 提交于
      While we're here, let's kill off a couple of the read-side macros.
      
      Leaving the more complicated ones alone for now.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      06553991
    • J
      nfsd4: simplify server xdr->next_page use · 05638dc7
      J. Bruce Fields 提交于
      The rpc code makes available to the NFS server an array of pages to
      encod into.  The server represents its reply as an xdr buf, with the
      head pointing into the first page in that array, the pages ** array
      starting just after that, and the tail (if any) sharing any leftover
      space in the page used by the head.
      
      While encoding, we use xdr_stream->page_ptr to keep track of which page
      we're currently using.
      
      Currently we set xdr_stream->page_ptr to buf->pages, which makes the
      head a weird exception to the rule that page_ptr always points to the
      page we're currently encoding into.  So, instead set it to buf->pages -
      1 (the page actually containing the head), and remove the need for a
      little unintuitive logic in xdr_get_next_encode_buffer() and
      xdr_truncate_encode.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      05638dc7
  2. 05 6月, 2014 5 次提交
  3. 31 5月, 2014 33 次提交