diff options
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 826b164a4b5b..3172c4e2f502 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -575,7 +575,11 @@ static const struct super_operations bdev_sops = { | |||
575 | static struct dentry *bd_mount(struct file_system_type *fs_type, | 575 | static struct dentry *bd_mount(struct file_system_type *fs_type, |
576 | int flags, const char *dev_name, void *data) | 576 | int flags, const char *dev_name, void *data) |
577 | { | 577 | { |
578 | return mount_pseudo(fs_type, "bdev:", &bdev_sops, NULL, BDEVFS_MAGIC); | 578 | struct dentry *dent; |
579 | dent = mount_pseudo(fs_type, "bdev:", &bdev_sops, NULL, BDEVFS_MAGIC); | ||
580 | if (dent) | ||
581 | dent->d_sb->s_iflags |= SB_I_CGROUPWB; | ||
582 | return dent; | ||
579 | } | 583 | } |
580 | 584 | ||
581 | static struct file_system_type bd_type = { | 585 | static struct file_system_type bd_type = { |