Commit 02630a12 authored by Steven Whitehouse's avatar Steven Whitehouse

[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: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 0a1340c1
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/buffer_head.h> #include <linux/buffer_head.h>
#include <linux/tty.h>
#include <linux/sort.h> #include <linux/sort.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/gfs2_ondisk.h> #include <linux/gfs2_ondisk.h>
...@@ -929,25 +928,11 @@ void gfs2_quota_unlock(struct gfs2_inode *ip) ...@@ -929,25 +928,11 @@ void gfs2_quota_unlock(struct gfs2_inode *ip)
static int print_message(struct gfs2_quota_data *qd, char *type) static int print_message(struct gfs2_quota_data *qd, char *type)
{ {
struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd;
char *line;
int len;
line = kmalloc(MAX_LINE, GFP_KERNEL); printk(KERN_INFO "GFS2: fsid=%s: quota %s for %s %u\r\n",
if (!line)
return -ENOMEM;
len = snprintf(line, MAX_LINE-1,
"GFS2: fsid=%s: quota %s for %s %u\r\n",
sdp->sd_fsname, type, sdp->sd_fsname, type,
(test_bit(QDF_USER, &qd->qd_flags)) ? "user" : "group", (test_bit(QDF_USER, &qd->qd_flags)) ? "user" : "group",
qd->qd_id); 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);
return 0; return 0;
} }
......
...@@ -1040,7 +1040,6 @@ void tty_write_message(struct tty_struct *tty, char *msg) ...@@ -1040,7 +1040,6 @@ void tty_write_message(struct tty_struct *tty, char *msg)
tty->driver->write(tty, msg, strlen(msg)); tty->driver->write(tty, msg, strlen(msg));
return; return;
} }
EXPORT_SYMBOL_GPL(tty_write_message);
/* /*
* printk rate limiting, lifted from the networking subsystem. * printk rate limiting, lifted from the networking subsystem.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment