1. 07 1月, 2011 1 次提交
    • N
      fs: change d_delete semantics · fe15ce44
      Nick Piggin 提交于
      Change d_delete from a dentry deletion notification to a dentry caching
      advise, more like ->drop_inode. Require it to be constant and idempotent,
      and not take d_lock. This is how all existing filesystems use the callback
      anyway.
      
      This makes fine grained dentry locking of dput and dentry lru scanning
      much simpler.
      Signed-off-by: NNick Piggin <npiggin@kernel.dk>
      fe15ce44
  2. 11 12月, 2010 1 次提交
  3. 08 12月, 2010 6 次提交
  4. 02 12月, 2010 1 次提交
    • T
      NFS: Fix a memory leak in nfs_readdir · 11de3b11
      Trond Myklebust 提交于
      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: NTrond Myklebust <Trond.Myklebust@netapp.com>
      11de3b11
  5. 01 12月, 2010 2 次提交
  6. 23 11月, 2010 9 次提交
  7. 18 11月, 2010 1 次提交
  8. 17 11月, 2010 1 次提交
  9. 16 11月, 2010 4 次提交
  10. 31 10月, 2010 2 次提交
  11. 29 10月, 2010 3 次提交
  12. 28 10月, 2010 4 次提交
  13. 27 10月, 2010 2 次提交
    • W
      writeback: remove nonblocking/encountered_congestion references · 1b430bee
      Wu Fengguang 提交于
      This removes more dead code that was somehow missed by commit 0d99519e
      (writeback: remove unused nonblocking and congestion checks).  There are
      no behavior change except for the removal of two entries from one of the
      ext4 tracing interface.
      
      The nonblocking checks in ->writepages are no longer used because the
      flusher now prefer to block on get_request_wait() than to skip inodes on
      IO congestion.  The latter will lead to more seeky IO.
      
      The nonblocking checks in ->writepage are no longer used because it's
      redundant with the WB_SYNC_NONE check.
      
      We no long set ->nonblocking in VM page out and page migration, because
      a) it's effectively redundant with WB_SYNC_NONE in current code
      b) it's old semantic of "Don't get stuck on request queues" is mis-behavior:
         that would skip some dirty inodes on congestion and page out others, which
         is unfair in terms of LRU age.
      
      Inspired by Christoph Hellwig. Thanks!
      Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
      Cc: Theodore Ts'o <tytso@mit.edu>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Sage Weil <sage@newdream.net>
      Cc: Steve French <sfrench@samba.org>
      Cc: Chris Mason <chris.mason@oracle.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Christoph Hellwig <hch@infradead.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1b430bee
    • T
      NFS: Fix a compile issue in nfs_root · 036a1075
      Trond Myklebust 提交于
      Stephen Rothwell reports:
      
      > /home/test/linux-2.6/fs/nfs/nfsroot.c: In function 'nfs_root_debug':
      > /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: error: 'nfs_debug'
      > undeclared (first use in this function)
      > /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: note: each undeclared
      > identifier is reported only once for each function it appears in
      > make[3]: *** [fs/nfs/nfsroot.o] Error 1
      > make[2]: *** [fs/nfs] Error 2
      > make[1]: *** [fs] Error 2
      > make: *** [sub-make] Error 2
      
      Which is caused by commit 306a0753
      (NFS: Allow NFSROOT debugging messages to be enabled dynamically)
      
      Fix is to disable this code when RPC_DEBUG is disabled.
      Reported-by: NZimny Lech <napohybelskurwysynom2010@gmail.com>
      Tested-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      036a1075
  14. 26 10月, 2010 2 次提交
  15. 25 10月, 2010 1 次提交