quota: check time limit when back out space/inode change

[ Upstream commit 632a9f3acd6687376cbb0b178df6048e19cbacc9 ]

When we fail from allocating inode/space, we back out
the change we already did. In a special case which has
exceeded soft limit by the change, we should also check
time limit and reset it properly.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Stable-dep-of: 179b8c97ebf6 ("quota: Fix rcu annotations of inode dquot pointers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit e87ed533e7a6167f4a5e1b0fdbf21784acf115cc)
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
1 file changed