quota: Don't store flags for v2 quota format
authorJan Kara <jack@suse.cz>
Wed, 19 Nov 2014 08:03:28 +0000 (09:03 +0100)
committerJan Kara <jack@suse.cz>
Wed, 21 Jan 2015 18:21:07 +0000 (19:21 +0100)
commitc119c5b9749e4df5e6344b5d2ccd959dd403c959
treefd4da9b57f5bb735a35f5fa4e8056234e0e2f1da
parentc38fda3fe8163898f538a45d3c1419e6870625ed
quota: Don't store flags for v2 quota format

Currently, v2 quota format blindly stored flags from in-memory dqinfo on
disk, although there are no flags supported. Since it is stupid to store
flags which have no effect, just store 0 unconditionally and don't
bother loading it from disk.

Note that userspace could have stored some flags there via Q_SETINFO
quotactl and then later read them (although flags have no effect) but
I'm pretty sure noone does that (most definitely quota-tools don't and
quota interface doesn't have too much other users).

Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota_v2.c