ext4: enable quota enforcement based on mount options
authorJan Kara <jack@suse.cz>
Tue, 6 Sep 2016 03:08:16 +0000 (23:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Sep 2016 03:08:16 +0000 (23:08 -0400)
commit49da939272f417ff94c40f132a308748b46efe68
treee4389c240b9e8168ddc7cd0eb5de3015ca005421
parent93e3b4e6631d2a74a8cf7429138096862ff9f452
ext4: enable quota enforcement based on mount options

When quota information is stored in quota files, we enable only quota
accounting on mount and enforcement is enabled only in response to
Q_QUOTAON quotactl. To make ext4 behavior consistent with XFS, we add a
possibility to enable quota enforcement on mount by specifying
corresponding quota mount option (usrquota, grpquota, prjquota).

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