]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Fix the logic check for all quotas being turned off
authorChandra Seetharaman <sekharan@us.ibm.com>
Wed, 10 Jul 2013 23:00:36 +0000 (18:00 -0500)
committerBen Myers <bpm@sgi.com>
Thu, 11 Jul 2013 21:49:10 +0000 (16:49 -0500)
commit11aa3f687bc40fcdecf512baee88b6401b4f34ea
tree1f5c3ec31c3bd484acf2cce7421721862bb7305b
parent77ca0c170974101c15a0a434ee50b07a4032278c
xfs: Fix the logic check for all quotas being turned off

During the review of seperate pquota inode patches, David noticed
that the test to detect all quotas being turned off was
incorrect, and hence the block was not freeing all the quota
information.

The check made sense in Irix, but in Linux, quota is turned off
one at a time, which makes the test invalid for Linux.

This problem existed since XFS was ported to Linux.

David suggested to fix the problem by detecting when all quotas are
turned off by checking m_qflags.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_quota.h