1. 20 5月, 2012 10 次提交
  2. 17 5月, 2012 2 次提交
  3. 15 5月, 2012 17 次提交
  4. 10 5月, 2012 5 次提交
  5. 09 5月, 2012 3 次提交
  6. 05 5月, 2012 2 次提交
    • T
      NFS: Fix sparse warnings · 1385b811
      Trond Myklebust 提交于
      Fix the following sparse warnings:
      
      fs/nfs/direct.c:221:6: warning: symbol 'nfs_direct_readpage_release' was
      not declared. Should it be static?
      fs/nfs/read.c:38:43: warning: non-ANSI function declaration of function
      'nfs_readhdr_alloc'
      fs/nfs/objlayout/objio_osd.c:214:5: warning: symbol '__alloc_objio_seg'
      was not declared. Should it be static?
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      Cc: Boaz Harrosh <bharrosh@panasas.com>
      1385b811
    • T
      NFS: Fix O_DIRECT compile warnings · bf5fc402
      Trond Myklebust 提交于
      Fix the following compile warnings:
      fs/nfs/direct.c: In function 'nfs_direct_read_schedule_segment':
      fs/nfs/direct.c:325:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:325:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:325:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:352:27: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c: In function 'nfs_direct_write_schedule_segment':
      fs/nfs/direct.c:622:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:622:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:622:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:650:27: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      bf5fc402
  7. 02 5月, 2012 1 次提交
    • T
      NFS: Adapt readdirplus to application usage patterns · d69ee9b8
      Trond Myklebust 提交于
      While the use of READDIRPLUS is significantly more efficient than
      READDIR followed by many LOOKUP calls, it is still less efficient
      than just READDIR if the attributes are not required.
      
      This patch tracks when lookups are attempted on the directory,
      and uses that information to selectively disable READDIRPLUS
      on that directory.
      The first 'readdir' call is always served using READDIRPLUS.
      Subsequent calls only use READDIRPLUS if there was a successful
      lookup or revalidation on a child in the mean time.
      
      Credit for the original idea should go to Neil Brown. See:
            http://www.spinics.net/lists/linux-nfs/msg19996.html
      However, the implementation in this patch differs from Neil's
      in that it focuses on tracking lookups rather than calls to
      stat().
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Neil Brown <neilb@suse.de>
      d69ee9b8