quota: remove invalid optimization from quota_sync_all
authorChristoph Hellwig <hch@infradead.org>
Tue, 16 Feb 2010 08:44:53 +0000 (03:44 -0500)
committerJan Kara <jack@suse.cz>
Thu, 4 Mar 2010 23:20:24 +0000 (00:20 +0100)
commita56fca23f67282467c08e75c40081da2345dfdbf
tree73d50c7b2be8c1435fbaa915fa4bf882824a51a7
parent5fb324ad24febe57a8a2e62903dcb7bad546ea71
quota: remove invalid optimization from quota_sync_all

Checking the "VFS" quota enabled and dirty bits from generic code means
this code will never get called for other implementations, e.g. XFS and
GFS2.  Grabbing the reference on the superblock really isn't much overhead
for a global Q_SYNC call, so just drop this optimization.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota.c