diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-03 11:20:06 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-07-03 11:20:06 -0400 |
commit | 02630a12c7f72fa294981c8d86e38038781c25b7 (patch) | |
tree | b6858e9ba69ce3780ce54988ed097c1358f21bb3 | |
parent | 0a1340c185734a57fbf4775927966ad4a1347b02 (diff) | |
download | linux-02630a12c7f72fa294981c8d86e38038781c25b7.tar.bz2 |
[GFS2] Remove dependance on tty_write_message()
This removes the call in GFS2 to tty_write_message and replaces
it with a printk. As the export was added by GFS2, we remove this
as well.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
-rw-r--r-- | fs/gfs2/quota.c | 23 | ||||
-rw-r--r-- | kernel/printk.c | 1 |
2 files changed, 4 insertions, 20 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 1892b29ec98d..3ca65c37c354 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -41,7 +41,6 @@ #include <linux/spinlock.h> #include <linux/completion.h> #include <linux/buffer_head.h> -#include <linux/tty.h> #include <linux/sort.h> #include <linux/fs.h> #include <linux/gfs2_ondisk.h> @@ -929,25 +928,11 @@ void gfs2_quota_unlock(struct gfs2_inode *ip) static int print_message(struct gfs2_quota_data *qd, char *type) { struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; - char *line; - int len; - line = kmalloc(MAX_LINE, GFP_KERNEL); - if (!line) - return -ENOMEM; - - len = snprintf(line, MAX_LINE-1, - "GFS2: fsid=%s: quota %s for %s %u\r\n", - sdp->sd_fsname, type, - (test_bit(QDF_USER, &qd->qd_flags)) ? "user" : "group", - qd->qd_id); - line[MAX_LINE-1] = 0; - - if (current->signal) { /* Is this test still required? */ - tty_write_message(current->signal->tty, line); - } - - kfree(line); + printk(KERN_INFO "GFS2: fsid=%s: quota %s for %s %u\r\n", + sdp->sd_fsname, type, + (test_bit(QDF_USER, &qd->qd_flags)) ? "user" : "group", + qd->qd_id); return 0; } diff --git a/kernel/printk.c b/kernel/printk.c index 9772b9e8feee..39ae24d2a415 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -1040,7 +1040,6 @@ void tty_write_message(struct tty_struct *tty, char *msg) tty->driver->write(tty, msg, strlen(msg)); return; } -EXPORT_SYMBOL_GPL(tty_write_message); /* * printk rate limiting, lifted from the networking subsystem. |