X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fsuper.c;h=8a06881b1920b9e164ab276ffe73180ebfbbe97a;hb=931aeeda0dca81152aec48f30be01e86a268bf89;hp=e84864908264067fcde8f26736a80b31b6a2ec1b;hpb=0625bef6060fab4aab0e484130b59af5e9ac81bc;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/fs/super.c b/fs/super.c index e848649..8a06881 100644 --- a/fs/super.c +++ b/fs/super.c @@ -71,6 +71,7 @@ static struct super_block *alloc_super(struct file_system_type *type) #else INIT_LIST_HEAD(&s->s_files); #endif + s->s_bdi = &default_backing_dev_info; INIT_LIST_HEAD(&s->s_instances); INIT_HLIST_BL_HEAD(&s->s_anon); INIT_LIST_HEAD(&s->s_inodes); @@ -936,6 +937,7 @@ mount_fs(struct file_system_type *type, int flags, const char *name, void *data) sb = root->d_sb; BUG_ON(!sb); WARN_ON(!sb->s_bdi); + WARN_ON(sb->s_bdi == &default_backing_dev_info); sb->s_flags |= MS_BORN; error = security_sb_kern_mount(sb, flags, secdata);