OSDN Git Service

quota: Do not dirty bad dquots
authorJan Kara <jack@suse.cz>
Wed, 2 Aug 2017 09:44:38 +0000 (11:44 +0200)
committerJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 20:00:07 +0000 (22:00 +0200)
commit4580b30ea887fc27e57dabd56724ca24d936dc8a
treed4982c470250700eb9e509b30560507b5197da44
parent15512377bd971ecc86f2eab40b841b265b5043de
quota: Do not dirty bad dquots

Currently we mark dirty even dquots that are not active (i.e.,
initialization or reading failed for them). Thus later we have to check
whether dirty dquot is really active and just clear the dirty bit if
not. Avoid this complication by just never marking non-active dquot as
dirty.

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