libceph: introduce and switch to reopen_session()
[linux-2.6-block.git] / fs / proc_namespace.c
index 2256e7e23e678a11d2ab3fbaf1226a508f0ef1c8..3f1190d18991539087ddef41b922b458d16914b7 100644 (file)
@@ -199,6 +199,8 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
        if (sb->s_op->show_devname) {
                seq_puts(m, "device ");
                err = sb->s_op->show_devname(m, mnt_path.dentry);
+               if (err)
+                       goto out;
        } else {
                if (r->mnt_devname) {
                        seq_puts(m, "device ");