Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38729
b: refs/heads/master
c: 02630a1
h: refs/heads/master
i:
  38727: 0644999
v: v3
  • Loading branch information
Steven Whitehouse committed Jul 3, 2006
1 parent 6b68f3e commit 3c5135f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a1340c185734a57fbf4775927966ad4a1347b02
refs/heads/master: 02630a12c7f72fa294981c8d86e38038781c25b7
23 changes: 4 additions & 19 deletions trunk/fs/gfs2/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3c5135f

Please sign in to comment.