gfs2: Convert to properly refcounting bdi
[sfrench/cifs-2.6.git] / fs / gfs2 / ops_fstype.c
index b108e7ba81af73568b71ec0b163bf68fbbde8948..e6b6f97d0fc1a52e8930ddb9c36cd008fc1d3955 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/quotaops.h>
 #include <linux/lockdep.h>
 #include <linux/module.h>
+#include <linux/backing-dev.h>
 
 #include "gfs2.h"
 #include "incore.h"
@@ -1222,12 +1223,8 @@ static int set_gfs2_super(struct super_block *s, void *data)
 {
        s->s_bdev = data;
        s->s_dev = s->s_bdev->bd_dev;
-
-       /*
-        * We set the bdi here to the queue backing, file systems can
-        * overwrite this in ->fill_super()
-        */
-       s->s_bdi = bdev_get_queue(s->s_bdev)->backing_dev_info;
+       s->s_bdi = bdi_get(s->s_bdev->bd_bdi);
+       s->s_iflags |= SB_I_DYNBDI;
        return 0;
 }