diff options
Diffstat (limited to 'fs/dquot.c')
-rw-r--r-- | fs/dquot.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/dquot.c b/fs/dquot.c index 8ec4d6cc7633..da30a27f2242 100644 --- a/fs/dquot.c +++ b/fs/dquot.c | |||
@@ -9,8 +9,6 @@ | |||
9 | * implementation is based on one of the several variants of the LINUX | 9 | * implementation is based on one of the several variants of the LINUX |
10 | * inode-subsystem with added complexity of the diskquota system. | 10 | * inode-subsystem with added complexity of the diskquota system. |
11 | * | 11 | * |
12 | * Version: $Id: dquot.c,v 6.3 1996/11/17 18:35:34 mvw Exp mvw $ | ||
13 | * | ||
14 | * Author: Marco van Wieringen <mvw@planets.elm.net> | 12 | * Author: Marco van Wieringen <mvw@planets.elm.net> |
15 | * | 13 | * |
16 | * Fixes: Dmitry Gorodchanin <pgmdsg@ibi.com>, 11 Feb 96 | 14 | * Fixes: Dmitry Gorodchanin <pgmdsg@ibi.com>, 11 Feb 96 |
@@ -895,10 +893,9 @@ static void print_warning(struct dquot *dquot, const int warntype) | |||
895 | warntype == QUOTA_NL_BSOFTBELOW || !need_print_warning(dquot)) | 893 | warntype == QUOTA_NL_BSOFTBELOW || !need_print_warning(dquot)) |
896 | return; | 894 | return; |
897 | 895 | ||
898 | mutex_lock(&tty_mutex); | ||
899 | tty = get_current_tty(); | 896 | tty = get_current_tty(); |
900 | if (!tty) | 897 | if (!tty) |
901 | goto out_lock; | 898 | return; |
902 | tty_write_message(tty, dquot->dq_sb->s_id); | 899 | tty_write_message(tty, dquot->dq_sb->s_id); |
903 | if (warntype == QUOTA_NL_ISOFTWARN || warntype == QUOTA_NL_BSOFTWARN) | 900 | if (warntype == QUOTA_NL_ISOFTWARN || warntype == QUOTA_NL_BSOFTWARN) |
904 | tty_write_message(tty, ": warning, "); | 901 | tty_write_message(tty, ": warning, "); |
@@ -926,8 +923,7 @@ static void print_warning(struct dquot *dquot, const int warntype) | |||
926 | break; | 923 | break; |
927 | } | 924 | } |
928 | tty_write_message(tty, msg); | 925 | tty_write_message(tty, msg); |
929 | out_lock: | 926 | tty_kref_put(tty); |
930 | mutex_unlock(&tty_mutex); | ||
931 | } | 927 | } |
932 | #endif | 928 | #endif |
933 | 929 | ||