1. 10 May, 2011 2 commits
  2. 08 Mar, 2011 1 commit
  3. 10 May, 2010 1 commit
  4. 11 Apr, 2010 1 commit
  5. 30 Mar, 2010 1 commit
    • Tejun Heo's avatar
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo authored
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        bloc...
      5a0e3ad6
  6. 20 Nov, 2009 3 commits
    • Ryusuke Konishi's avatar
      nilfs2: insert cache operation in palloc get block routines · 70622a20
      Ryusuke Konishi authored
      
      This implements cache operation in get block routines of palloc code:
      nilfs_palloc_get_desc_block(), nilfs_palloc_get_bitmap_block(), and
      nilfs_palloc_get_entry_block().
      
      This will complete the palloc cache.
      Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      70622a20
    • Ryusuke Konishi's avatar
      nilfs2: add cache framework for persistent object allocator · db38d5ad
      Ryusuke Konishi authored
      
      This adds setup and cleanup routines of the persistent object
      allocator cache.
      
      According to ftrace analyses, accessing buffers of the DAT file
      suffers indispensable overhead many times.  To mitigate the overhead,
      This introduce cache framework for the persistent object allocator
      (palloc) which the DAT file and ifile are using.
      
      struct nilfs_palloc_cache represents the cache object per metadata
      file using palloc.
      
      The cache is initialized through nilfs_palloc_setup_cache() and
      destroyed by nilfs_palloc_destroy_cache(); callers of the former
      function will be added to individual allocators of DAT and ifile on
      successive patches.
      
      nilfs_palloc_destroy_cache() will be called from nilfs_mdt_destroy()
      if the cache is attached to a metadata file.  A companion function
      nilfs_palloc_clear_cache() is provided to allow releasing buffer head
      references independently with the cleanup task.  This adjunctive
      function will be used before invalidating pages of metadata file with
      the cache.
      Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      db38d5ad
    • Ryusuke Konishi's avatar
      nilfs2: unfold nilfs_palloc_block_get_bitmap function · 141bbdba
      Ryusuke Konishi authored
      
      This expands a trivial address calculation in the function into its
      every callsite. This expansion improves readability of the callers.
      Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      141bbdba
  7. 07 Apr, 2009 1 commit