]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: Split default quota limits by quota type
authorCarlos Maiolino <cmaiolino@redhat.com>
Mon, 8 Feb 2016 00:27:55 +0000 (11:27 +1100)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 20 Jan 2017 08:12:35 +0000 (00:12 -0800)
commit175def6fd96a4b657edaebf87987c23932ed204f
tree7ba8271229ecca40992d16c6daa0fc05f61df762
parente0a4056d81e4894638b6860f0fcfd51036d49e13
xfs: Split default quota limits by quota type

Orabug: 24399524
Upstream-commit: be6079461abf796e29d02b450a16908f4bf58f6c

Default quotas are globally set due historical reasons. IRIX only
supported user and project quotas, and default quota was only
applied to user quotas.

In Linux, when a default quota is set, all different quota types
inherits the same default value.

An user with a quota limit larger than the default quota value, will
still be limited to the default value because the group quotas also
inherits the default quotas. Unless the group which the user belongs
to have a custom quota limit set.

This patch aims to split the default quota value by quota type.
Allowing each quota type having different default values.

Default time limits are still set globally. XFS does not set a
per-user/group timer, but a single global timer. For changing this
behavior, some changes should be made in user-space tools another
bugs being fixed.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_qm.h
fs/xfs/xfs_qm_syscalls.c
fs/xfs/xfs_trans_dquot.c