projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kselftest: rtnetlink: fix ip route command typo
[linux-block.git]
/
block
/
bdev.c
diff --git
a/block/bdev.c
b/block/bdev.c
index 2018d250e1310913952b272481e299f188ea34f3..e4cfb7adb64581d0630d61dc0f5a287245da7d38 100644
(file)
--- a/
block/bdev.c
+++ b/
block/bdev.c
@@
-292,7
+292,7
@@
EXPORT_SYMBOL(thaw_bdev);
*/
static __cacheline_aligned_in_smp DEFINE_MUTEX(bdev_lock);
*/
static __cacheline_aligned_in_smp DEFINE_MUTEX(bdev_lock);
-static struct kmem_cache *
bdev_cachep __read_mostly
;
+static struct kmem_cache *
bdev_cachep __ro_after_init
;
static struct inode *bdev_alloc_inode(struct super_block *sb)
{
static struct inode *bdev_alloc_inode(struct super_block *sb)
{
@@
-361,13
+361,13
@@
static struct file_system_type bd_type = {
.kill_sb = kill_anon_super,
};
.kill_sb = kill_anon_super,
};
-struct super_block *blockdev_superblock __r
ead_mostly
;
+struct super_block *blockdev_superblock __r
o_after_init
;
EXPORT_SYMBOL_GPL(blockdev_superblock);
void __init bdev_cache_init(void)
{
int err;
EXPORT_SYMBOL_GPL(blockdev_superblock);
void __init bdev_cache_init(void)
{
int err;
- static struct vfsmount *bd_mnt;
+ static struct vfsmount *bd_mnt
__ro_after_init
;
bdev_cachep = kmem_cache_create("bdev_cache", sizeof(struct bdev_inode),
0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|
bdev_cachep = kmem_cache_create("bdev_cache", sizeof(struct bdev_inode),
0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|