aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r--fs/ubifs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 7e2b3d4d487a..333e181ee987 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -1952,6 +1952,7 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
1952 * 1952 *
1953 * Read-ahead will be disabled because @c->bdi.ra_pages is 0. 1953 * Read-ahead will be disabled because @c->bdi.ra_pages is 0.
1954 */ 1954 */
1955 c->bdi.name = "ubifs",
1955 c->bdi.capabilities = BDI_CAP_MAP_COPY; 1956 c->bdi.capabilities = BDI_CAP_MAP_COPY;
1956 c->bdi.unplug_io_fn = default_unplug_io_fn; 1957 c->bdi.unplug_io_fn = default_unplug_io_fn;
1957 err = bdi_init(&c->bdi); 1958 err = bdi_init(&c->bdi);
@@ -1966,6 +1967,7 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
1966 if (err) 1967 if (err)
1967 goto out_bdi; 1968 goto out_bdi;
1968 1969
1970 sb->s_bdi = &c->bdi;
1969 sb->s_fs_info = c; 1971 sb->s_fs_info = c;
1970 sb->s_magic = UBIFS_SUPER_MAGIC; 1972 sb->s_magic = UBIFS_SUPER_MAGIC;
1971 sb->s_blocksize = UBIFS_BLOCK_SIZE; 1973 sb->s_blocksize = UBIFS_BLOCK_SIZE;