1. 10 6月, 2009 1 次提交
  2. 08 6月, 2009 2 次提交
    • C
      xfs: remove SYNC_BDFLUSH · 8b5403a6
      Christoph Hellwig 提交于
      SYNC_BDFLUSH is a leftover from IRIX and rather misnamed for todays
      code.  Make xfs_sync_fsdata and xfs_dq_sync use the SYNC_TRYLOCK flag
      for not blocking on logs just as the inode sync code already does.
      
      For xfs_sync_fsdata it's a trivial 1:1 replacement, but for xfs_qm_sync
      I use the opportunity to decouple the non-blocking lock case from the
      different flushing modes, similar to the inode sync code.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NEric Sandeen <sandeen@sandeen.net>
      8b5403a6
    • C
      xfs: kill xfs_qmops · 7d095257
      Christoph Hellwig 提交于
      Kill the quota ops function vector and replace it with direct calls or
      stubs in the CONFIG_XFS_QUOTA=n case.
      
      Make sure we check XFS_IS_QUOTA_RUNNING in the right spots.  We can remove
      the number of those checks because the XFS_TRANS_DQ_DIRTY flag can't be set
      otherwise.
      
      This brings us back closer to the way this code worked in IRIX and earlier
      Linux versions, but we keep a lot of the more useful factoring of common
      code.
      
      Eventually we should also kill xfs_qm_bhv.c, but that's left for a later
      patch.
      
      Reduces the size of the source code by about 250 lines and the size of
      XFS module by about 1.5 kilobytes with quotas enabled:
      
         text	   data	    bss	    dec	    hex	filename
       615957	   2960	   3848	 622765	  980ad	fs/xfs/xfs.o
       617231	   3152	   3848	 624231	  98667	fs/xfs/xfs.o.old
      
      Fallout:
      
       - xfs_qm_dqattach is split into xfs_qm_dqattach_locked which expects
         the inode locked and xfs_qm_dqattach which does the locking around it,
         thus removing XFS_QMOPT_ILOCKED.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NEric Sandeen <sandeen@sandeen.net>
      7d095257
  3. 29 3月, 2009 1 次提交
  4. 09 2月, 2009 3 次提交
  5. 19 1月, 2009 2 次提交
  6. 04 12月, 2008 1 次提交
  7. 30 10月, 2008 3 次提交
  8. 13 8月, 2008 2 次提交
  9. 28 7月, 2008 3 次提交
  10. 29 4月, 2008 2 次提交
  11. 18 4月, 2008 7 次提交
  12. 10 4月, 2008 1 次提交
  13. 14 2月, 2008 1 次提交
  14. 07 2月, 2008 2 次提交
  15. 10 12月, 2007 1 次提交
  16. 16 10月, 2007 2 次提交
  17. 15 10月, 2007 1 次提交
  18. 05 9月, 2007 1 次提交
    • E
      [XFS] fix nasty quota hashtable allocation bug · 5995cb7d
      Eric Sandeen 提交于
      This git mod: 77e4635a
      converted to a "greedy" allocation interface, but for the quota hashtables
      it switched from allocating XFS_QM_HASHSIZE (nr of elements)
      xfs_dqhash_t's to allocating only XFS_QM_HASHSIZE *bytes* - quite a lot
      smaller! Then when we converted hsize "back" to nr of elements (the
      division line) hsize went to 0. This was leading to oopses when running
      any quota tests on the Fedora 8 test kernel, but the problem has been
      there for almost a year.
      
      SGI-PV: 968837
      SGI-Modid: xfs-linux-melb:xfs-kern:29354a
      Signed-off-by: NEric Sandeen <sandeen@sandeen.net>
      Signed-off-by: NDavid Chinner <dgc@sgi.com>
      Signed-off-by: NTim Shimmin <tes@sgi.com>
      5995cb7d
  19. 18 7月, 2007 1 次提交
  20. 14 7月, 2007 2 次提交
  21. 08 5月, 2007 1 次提交