]> git.karo-electronics.de Git - karo-tx-linux.git/commit
quota: Hook up Q_XSETQLIM for id 0 to ->set_info
authorJan Kara <jack@suse.cz>
Tue, 16 Dec 2014 15:12:27 +0000 (16:12 +0100)
committerJan Kara <jack@suse.cz>
Wed, 4 Mar 2015 15:06:39 +0000 (16:06 +0100)
commitc39fb53b48c851b185c22548153581d78f2acc11
tree9cb77c6c41e412eae92f26c8528e65b35c9ec703
parentc14cad9eed11343014f73aae4a77278239b201b8
quota: Hook up Q_XSETQLIM for id 0 to ->set_info

Setting timers or warning counts for id 0 via Q_XSETQLIM is used to
actually set time limits and warning limits for all users. Hook up
->set_info to this so that VFS quota time limits get set the same
way as XFS ones.

When doing this Q_XSETQLIM for XFS is effectively split into two
independent transactions - one for setting timers and warning limits and
one for setting space and inode limits. Although this is inefficient, it
is rare enough that it does not matter.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota.c