Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283219
b: refs/heads/master
c: ace8577
h: refs/heads/master
i:
  283217: 32ccc9b
  283215: 392abce
v: v3
  • Loading branch information
Sergey Senozhatsky authored and Al Viro committed Jan 10, 2012
1 parent 8fb8507 commit 3976546
Show file tree
Hide file tree
Showing 2 changed files with 3 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: eaf5f9073533cde21c7121c136f1c3f072d9cf59
refs/heads/master: ace8577aeb438025ecf642f5eda3aa551d251951
10 changes: 2 additions & 8 deletions trunk/fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <linux/uio.h>
#include <linux/namei.h>
#include <linux/log2.h>
#include <linux/kmemleak.h>
#include <linux/cleancache.h>
#include <asm/uaccess.h>
#include "internal.h"
Expand Down Expand Up @@ -521,7 +520,7 @@ static struct super_block *blockdev_superblock __read_mostly;
void __init bdev_cache_init(void)
{
int err;
struct vfsmount *bd_mnt;
static struct vfsmount *bd_mnt;

bdev_cachep = kmem_cache_create("bdev_cache", sizeof(struct bdev_inode),
0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
Expand All @@ -533,12 +532,7 @@ void __init bdev_cache_init(void)
bd_mnt = kern_mount(&bd_type);
if (IS_ERR(bd_mnt))
panic("Cannot create bdev pseudo-fs");
/*
* This vfsmount structure is only used to obtain the
* blockdev_superblock, so tell kmemleak not to report it.
*/
kmemleak_not_leak(bd_mnt);
blockdev_superblock = bd_mnt->mnt_sb; /* For writeback */
blockdev_superblock = bd_mnt->mnt_sb; /* For writeback */
}

/*
Expand Down

0 comments on commit 3976546

Please sign in to comment.