Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96494
b: refs/heads/master
c: f36f21e
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed May 13, 2008
1 parent d92a4b3 commit d6caab2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 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: 78bb6cb9a890d3d50ca3b02fce9223d3e734ab9b
refs/heads/master: f36f21ecca9ee688301174e5f2e0827827a7a7ff
2 changes: 1 addition & 1 deletion trunk/block/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg)

switch (cmd) {
case BLKTRACESETUP:
strcpy(b, bdevname(bdev, b));
bdevname(bdev, b);
ret = blk_trace_setup(q, b, bdev->bd_dev, arg);
break;
case BLKTRACESTART:
Expand Down
2 changes: 1 addition & 1 deletion trunk/block/compat_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ static int compat_blk_trace_setup(struct block_device *bdev, char __user *arg)
if (copy_from_user(&cbuts, arg, sizeof(cbuts)))
return -EFAULT;

strcpy(b, bdevname(bdev, b));
bdevname(bdev, b);

buts = (struct blk_user_trace_setup) {
.act_mask = cbuts.act_mask,
Expand Down
6 changes: 2 additions & 4 deletions trunk/fs/ext4/mballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2639,8 +2639,7 @@ static int ext4_mb_init_per_dev_proc(struct super_block *sb)
struct proc_dir_entry *proc;
char devname[64];

snprintf(devname, sizeof(devname) - 1, "%s",
bdevname(sb->s_bdev, devname));
bdevname(sb->s_bdev, devname);
sbi->s_mb_proc = proc_mkdir(devname, proc_root_ext4);

MB_PROC_HANDLER(EXT4_MB_STATS_NAME, stats);
Expand Down Expand Up @@ -2674,8 +2673,7 @@ static int ext4_mb_destroy_per_dev_proc(struct super_block *sb)
if (sbi->s_mb_proc == NULL)
return -EINVAL;

snprintf(devname, sizeof(devname) - 1, "%s",
bdevname(sb->s_bdev, devname));
bdevname(sb->s_bdev, devname);
remove_proc_entry(EXT4_MB_GROUP_PREALLOC, sbi->s_mb_proc);
remove_proc_entry(EXT4_MB_STREAM_REQ, sbi->s_mb_proc);
remove_proc_entry(EXT4_MB_ORDER2_REQ, sbi->s_mb_proc);
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ static void jbd2_stats_proc_init(journal_t *journal)
{
char name[BDEVNAME_SIZE];

snprintf(name, sizeof(name) - 1, "%s", bdevname(journal->j_dev, name));
bdevname(journal->j_dev, name);
journal->j_proc_entry = proc_mkdir(name, proc_jbd2_stats);
if (journal->j_proc_entry) {
proc_create_data("history", S_IRUGO, journal->j_proc_entry,
Expand All @@ -915,7 +915,7 @@ static void jbd2_stats_proc_exit(journal_t *journal)
{
char name[BDEVNAME_SIZE];

snprintf(name, sizeof(name) - 1, "%s", bdevname(journal->j_dev, name));
bdevname(journal->j_dev, name);
remove_proc_entry("info", journal->j_proc_entry);
remove_proc_entry("history", journal->j_proc_entry);
remove_proc_entry(name, proc_jbd2_stats);
Expand Down

0 comments on commit d6caab2

Please sign in to comment.