Christoph Hellwig 7d095257e3 xfs: kill xfs_qmops
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: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2009-06-08 15:33:32 +02:00
..
2009-01-22 13:15:57 +03:00
2009-01-22 13:15:57 +03:00
2009-01-22 13:15:58 +03:00
2009-01-22 13:15:57 +03:00
2009-03-27 14:44:01 -04:00
2009-01-22 13:15:58 +03:00
2008-11-14 10:39:25 +11:00
2009-03-22 11:28:37 -07:00
2008-10-17 02:38:36 +11:00
2009-03-27 14:44:05 -04:00
2009-01-22 13:15:55 +03:00
2009-03-27 14:44:02 -04:00
2009-01-22 13:15:58 +03:00
2009-01-22 13:15:59 +03:00
2009-03-26 02:18:35 +01:00
2009-01-22 13:15:59 +03:00
2009-06-08 15:33:32 +02:00
2009-03-27 14:44:03 -04:00
2008-12-31 18:07:43 -05:00
2009-01-03 11:45:54 -08:00
2009-02-06 17:34:07 -08:00
2009-03-27 14:44:03 -04:00
2009-03-27 14:44:03 -04:00
2009-03-28 17:30:00 -07:00
2009-03-27 14:43:57 -04:00
2009-03-27 14:44:05 -04:00
2009-03-16 08:32:27 -06:00
2009-03-28 17:30:00 -07:00
2009-03-28 17:30:00 -07:00
2009-03-16 08:34:35 -06:00
2009-02-18 15:37:53 -08:00