1. 15 3月, 2012 5 次提交
  2. 11 2月, 2012 1 次提交
    • C
      xfs: use a normal shrinker for the dquot freelist · 92b2e5b3
      Christoph Hellwig 提交于
      Stop reusing dquots from the freelist when allocating new ones directly, and
      implement a shrinker that actually follows the specifications for the
      interface.  The shrinker implementation is still highly suboptimal at this
      point, but we can gradually work on it.
      
      This also fixes an bug in the previous lock ordering, where we would take
      the hash and dqlist locks inside of the freelist lock against the normal
      lock ordering.  This is only solvable by introducing the dispose list,
      and thus not when using direct reclaim of unused dquots for new allocations.
      
      As a side-effect the quota upper bound and used to free ratio values in
      /proc/fs/xfs/xqm are set to 0 as these values don't make any sense in the
      new world order.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NBen Myers <bpm@sgi.com>
      
      (cherry picked from commit 04da0c81)
      92b2e5b3
  3. 04 2月, 2012 1 次提交
  4. 17 12月, 2011 1 次提交
  5. 16 12月, 2011 3 次提交
  6. 15 12月, 2011 2 次提交
  7. 14 12月, 2011 2 次提交
  8. 13 12月, 2011 5 次提交
  9. 16 11月, 2011 1 次提交
    • M
      xfs: use doalloc flag in xfs_qm_dqattach_one() · db3e74b5
      Mitsuo Hayasaka 提交于
      The doalloc arg in xfs_qm_dqattach_one() is a flag that indicates
      whether a new area to handle quota information will be allocated
      if needed. Originally, it was passed to xfs_qm_dqget(), but has
      been removed by the following commit (probably by mistake):
      
      	commit 8e9b6e7f
      	Author: Christoph Hellwig <hch@lst.de>
      	Date:   Sun Feb 8 21:51:42 2009 +0100
      
      	xfs: remove the unused XFS_QMOPT_DQLOCK flag
      
      As the result, xfs_qm_dqget() called from xfs_qm_dqattach_one()
      never allocates the new area even if it is needed.
      
      This patch gives the doalloc arg to xfs_qm_dqget() in
      xfs_qm_dqattach_one() to fix this problem.
      Signed-off-by: NMitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
      Cc: Alex Elder <aelder@sgi.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NBen Myers <bpm@sgi.com>
      db3e74b5
  10. 12 10月, 2011 3 次提交
  11. 13 8月, 2011 1 次提交
    • C
      xfs: remove subdirectories · c59d87c4
      Christoph Hellwig 提交于
      Use the move from Linux 2.6 to Linux 3.x as an excuse to kill the
      annoying subdirectories in the XFS source code.  Besides the large
      amount of file rename the only changes are to the Makefile, a few
      files including headers with the subdirectory prefix, and the binary
      sysctl compat code that includes a header under fs/xfs/ from
      kernel/.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAlex Elder <aelder@sgi.com>
      c59d87c4
  12. 26 7月, 2011 1 次提交
  13. 13 7月, 2011 1 次提交
  14. 25 5月, 2011 1 次提交
  15. 08 4月, 2011 1 次提交
  16. 07 3月, 2011 3 次提交
  17. 23 2月, 2011 1 次提交
  18. 28 1月, 2011 1 次提交
    • D
      xfs: fix dquot shaker deadlock · 0fbca4d1
      Dave Chinner 提交于
      Commit 368e1361 ("xfs: remove duplicate code from dquot reclaim") fails
      to unlock the dquot freelist when the number of loop restarts is
      exceeded in xfs_qm_dqreclaim_one(). This causes hangs in memory
      reclaim.
      
      Rework the loop control logic into an unwind stack that all the
      different cases jump into. This means there is only one set of code
      that processes the loop exit criteria, and simplifies the unlocking
      of all the items from different points in the loop. It also fixes a
      double increment of the restart counter from the qi_dqlist_lock
      case.
      Reported-by: NMalcolm Scott <lkml@malc.org.uk>
      Signed-off-by: NDave Chinner <dchinner@redhat.com>
      Reviewed-by: NAlex Elder <aelder@sgi.com>
      0fbca4d1
  19. 19 10月, 2010 4 次提交
  20. 27 7月, 2010 2 次提交