X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fdquot.c;h=da30a27f2242c7e2e844b630ea02d12474ce7fdd;hb=8ef50901d3c619127858b7d7f614fcab45e09d6b;hp=8ec4d6cc763317bf8403a7eae3c666ef2b97b136;hpb=0b88641f1bafdbd087d5e63987a30cc0eadd63b9;p=mv-sheeva.git diff --git a/fs/dquot.c b/fs/dquot.c index 8ec4d6cc763..da30a27f224 100644 --- a/fs/dquot.c +++ b/fs/dquot.c @@ -9,8 +9,6 @@ * implementation is based on one of the several variants of the LINUX * inode-subsystem with added complexity of the diskquota system. * - * Version: $Id: dquot.c,v 6.3 1996/11/17 18:35:34 mvw Exp mvw $ - * * Author: Marco van Wieringen * * Fixes: Dmitry Gorodchanin , 11 Feb 96 @@ -895,10 +893,9 @@ static void print_warning(struct dquot *dquot, const int warntype) warntype == QUOTA_NL_BSOFTBELOW || !need_print_warning(dquot)) return; - mutex_lock(&tty_mutex); tty = get_current_tty(); if (!tty) - goto out_lock; + return; tty_write_message(tty, dquot->dq_sb->s_id); if (warntype == QUOTA_NL_ISOFTWARN || warntype == QUOTA_NL_BSOFTWARN) tty_write_message(tty, ": warning, "); @@ -926,8 +923,7 @@ static void print_warning(struct dquot *dquot, const int warntype) break; } tty_write_message(tty, msg); -out_lock: - mutex_unlock(&tty_mutex); + tty_kref_put(tty); } #endif