1. 25 8月, 2006 2 次提交
    • A
      VFS: add lookup hint for network file systems · a634904a
      ASANO Masahiro 提交于
      I'm trying to speeding up mkdir(2) for network file systems.  A typical
      mkdir(2) calls two inode_operations: lookup and mkdir.  The lookup
      operation would fail with ENOENT in common case.  I think it is unnecessary
      because the subsequent mkdir operation can check it.  In case of creat(2),
      lookup operation is called with the LOOKUP_CREATE flag, so individual
      filesystem can omit real lookup.  e.g.  nfs_lookup().
      
      Here is a sample patch which uses LOOKUP_CREATE and O_EXCL on mkdir,
      symlink and mknod.  This uses the gadget for creat(2).
      
      And here is the result of a benchmark on NFSv3.
        mkdir(2) 10,000 times:
          original  50.5 sec
          patched   29.0 sec
      Signed-off-by: NASANO Masahiro <masano@tnes.nec.co.jp>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      (cherry picked from fab7bf44449b29f9d5572a5dd8adcf7c91d5bf0f commit)
      a634904a
    • N
      NFS: Fix a potential deadlock in nfs_release_page · ddeff520
      Nikita Danilov 提交于
      nfs_wb_page() waits on request completion and, as a result, is not safe to be
      called from nfs_release_page() invoked by VM scanner as part of GFP_NOFS
      allocation. Fix possible deadlock by analyzing gfp mask and refusing to
      release page if __GFP_FS is not set.
      Signed-off-by: NNikita Danilov <danilov@gmail.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      (cherry picked from 374d969debfb290bafcb41d28918dc6f7e43ce31 commit)
      ddeff520
  2. 19 8月, 2006 2 次提交
  3. 18 8月, 2006 22 次提交
  4. 17 8月, 2006 8 次提交
  5. 16 8月, 2006 6 次提交