X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fsuper.c;h=e9dc3c3fe159cc2e59bfb27f0beb8bd30e92188b;hb=dd7a7bb50cb5b5166a562a883f149ee4721c9c63;hp=80d5cf2ca76518a450a31cb7cad340794a525ed8;hpb=9f8b483cf34d1492fdabf9b03ab3f9c74c242554;p=karo-tx-linux.git diff --git a/fs/super.c b/fs/super.c index 80d5cf2ca765..48377f7463c0 100644 --- a/fs/super.c +++ b/fs/super.c @@ -719,8 +719,6 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) } } - sync_filesystem(sb); - if (sb->s_op->remount_fs) { retval = sb->s_op->remount_fs(sb, &flags, data); if (retval) { @@ -802,7 +800,10 @@ void emergency_remount(void) static DEFINE_IDA(unnamed_dev_ida); static DEFINE_SPINLOCK(unnamed_dev_lock);/* protects the above */ -static int unnamed_dev_start = 0; /* don't bother trying below it */ +/* Many userspace utilities consider an FSID of 0 invalid. + * Always return at least 1 from get_anon_bdev. + */ +static int unnamed_dev_start = 1; int get_anon_bdev(dev_t *p) {