]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't allow quota mount options when quota feature enabled
authorJan Kara <jack@suse.cz>
Sat, 2 Mar 2013 22:57:08 +0000 (17:57 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Mar 2013 22:57:08 +0000 (17:57 -0500)
commit814e26654a1353a44abe0d445b18b06f1a15cb2e
tree30bc20d8e36a09509f083b139b6c73ff95ab182d
parentf82454460959762d237a6f3c201e2e81071b74ee
ext4: don't allow quota mount options when quota feature enabled

So far we silently ignored when quota mount options were set while quota
feature was enabled.  But this can create confusion in userspace when
mount options are set but silently ignored and also creates opportunities
for bugs when we don't properly test all quota types.  Actually
ext4_mark_dquot_dirty() forgets to test for quota feature so it was
dependent on journaled quota options being set.  OTOH ext4_orphan_cleanup()
tries to enable journaled quota when quota options are specified which is
wrong when quota feature is enabled.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c