internal.h 934 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/* fs/ internal definitions
 *
 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */

12 13
struct super_block;

14 15 16
/*
 * block_dev.c
 */
17
#ifdef CONFIG_BLOCK
18 19 20
extern struct super_block *blockdev_superblock;
extern void __init bdev_cache_init(void);

21 22 23 24 25
static inline int sb_is_blkdev_sb(struct super_block *sb)
{
	return sb == blockdev_superblock;
}

26
#else
27 28 29
static inline void bdev_cache_init(void)
{
}
30

31 32 33 34
static inline int sb_is_blkdev_sb(struct super_block *sb)
{
	return 0;
}
35
#endif
36

37 38 39 40 41 42 43 44 45
/*
 * char_dev.c
 */
extern void __init chrdev_init(void);

/*
 * namespace.c
 */
extern int copy_mount_options(const void __user *, unsigned long *);