Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333902
b: refs/heads/master
c: a608ca2
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Al Viro committed Oct 12, 2012
1 parent fef32a8 commit 427e3a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: 4fa6b5ecbf092c6ee752ece8a55d71f663d23254
refs/heads/master: a608ca21f58ee44df5a71ba140e98498f3ebc2cd
3 changes: 1 addition & 2 deletions trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2228,8 +2228,7 @@ extern void __init vfs_caches_init(unsigned long);

extern struct kmem_cache *names_cachep;

#define __getname_gfp(gfp) kmem_cache_alloc(names_cachep, (gfp))
#define __getname() __getname_gfp(GFP_KERNEL)
#define __getname() kmem_cache_alloc(names_cachep, GFP_KERNEL)
#define __putname(name) kmem_cache_free(names_cachep, (void *)(name))
#ifndef CONFIG_AUDITSYSCALL
#define putname(name) __putname(name)
Expand Down
7 changes: 4 additions & 3 deletions trunk/init/do_mounts.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ static int __init do_mount_root(char *name, char *fs, int flags, void *data)

void __init mount_block_root(char *name, int flags)
{
char *fs_names = __getname_gfp(GFP_KERNEL
| __GFP_NOTRACK_FALSE_POSITIVE);
struct page *page = alloc_page(GFP_KERNEL |
__GFP_NOTRACK_FALSE_POSITIVE);
char *fs_names = page_address(page);
char *p;
#ifdef CONFIG_BLOCK
char b[BDEVNAME_SIZE];
Expand Down Expand Up @@ -406,7 +407,7 @@ void __init mount_block_root(char *name, int flags)
#endif
panic("VFS: Unable to mount root fs on %s", b);
out:
putname(fs_names);
put_page(page);
}

#ifdef CONFIG_ROOT_NFS
Expand Down

0 comments on commit 427e3a5

Please sign in to comment.