mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00:00
quota: Replace BUG_ON in dqput()
The BUG_ON in dqput() will likely take the whole machine down when it hits. Replace it with WARN_ON_ONCE() instead and stop hiding that behind CONFIG_QUOTA_DEBUG. Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
6613476e22
commit
c8238508c8
1 changed files with 1 additions and 4 deletions
|
@ -875,10 +875,7 @@ void dqput(struct dquot *dquot)
|
|||
}
|
||||
|
||||
/* Need to release dquot? */
|
||||
#ifdef CONFIG_QUOTA_DEBUG
|
||||
/* sanity check */
|
||||
BUG_ON(!list_empty(&dquot->dq_free));
|
||||
#endif
|
||||
WARN_ON_ONCE(!list_empty(&dquot->dq_free));
|
||||
put_releasing_dquots(dquot);
|
||||
atomic_dec(&dquot->dq_count);
|
||||
spin_unlock(&dq_list_lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue