1. 24 Mar, 2011 1 commit
  2. 16 Mar, 2011 1 commit
    • Al Viro's avatar
      nfs: store devname at disconnected NFS roots · b1942c5f
      Al Viro authored
      
      part 2: make sure that disconnected roots have corresponding mnt_devname
      values stashed into them.
      
      Have nfs*_get_root() stuff a copy of devname into ->d_fsdata of the
      found root, provided that it is disconnected.
      
      Have ->d_release() free it when dentry goes away.
      
      Have the places where NFS uses ->d_fsdata for sillyrename (and that
      can *never* happen to a disconnected root - dentry will be attached
      to its parent) free old devname copies if they find those.
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      b1942c5f
  3. 16 Jan, 2011 1 commit
  4. 14 Jan, 2011 1 commit
  5. 13 Jan, 2011 2 commits
  6. 10 Jan, 2011 1 commit
    • Trond Myklebust's avatar
      NFS: Don't use vm_map_ram() in readdir · 6650239a
      Trond Myklebust authored
      
      vm_map_ram() is not available on NOMMU platforms, and causes trouble
      on incoherrent architectures such as ARM when we access the page data
      through both the direct and the virtual mapping.
      
      The alternative is to use the direct mapping to access page data
      for the case when we are not crossing a page boundary, but to copy
      the data into a linear scratch buffer when we are accessing data
      that spans page boundaries.
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Tested-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      Cc: stable@kernel.org  [2.6.37]
      6650239a
  7. 07 Jan, 2011 6 commits
  8. 04 Jan, 2011 3 commits
  9. 16 Dec, 2010 1 commit
    • Chuck Lever's avatar
      NFS: Simplify ->decode_dirent() calling sequence · 573c4e1e
      Chuck Lever authored
      
      Clean up.
      
      The pointer returned by ->decode_dirent() is no longer used as a
      pointer.  The only call site (xdr_decode() in fs/nfs/dir.c) simply
      extracts the errno value encoded in the pointer.  Replace the
      returned pointer with a standard integer errno return value.
      
      Also, pass the "server" argument as part of the nfs_entry instead of
      as a separate parameter.  It's faster to derive "server" in
      nfs_readdir_xdr_to_array() since we already have the directory's inode
      handy.  "server" ought to be invariant for a set of entries in the
      same directory, right?
      
      The legacy versions of decode_dirent() don't use "server" anyway, so
      it's wasted work for them to derive and pass "server" for each entry.
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      Tested-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      573c4e1e
  10. 07 Dec, 2010 2 commits
  11. 02 Dec, 2010 1 commit
    • Trond Myklebust's avatar
      NFS: Fix a memory leak in nfs_readdir · 11de3b11
      Trond Myklebust authored
      
      We need to ensure that the entries in the nfs_cache_array get cleared
      when the page is removed from the page cache. To do so, we use the
      freepage address_space operation.
      
      Change nfs_readdir_clear_array to use kmap_atomic(), so that the
      function can be safely called from all contexts.
      
      Finally, modify the cache_page_release helper to call
      nfs_readdir_clear_array directly, when dealing with an anonymous
      page from 'uncached_readdir'.
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      11de3b11
  12. 01 Dec, 2010 1 commit
  13. 30 Nov, 2010 1 commit
  14. 22 Nov, 2010 7 commits
  15. 16 Nov, 2010 4 commits
  16. 26 Oct, 2010 1 commit
  17. 23 Oct, 2010 6 commits