OSDN Git Service

fs: Add VirtualBox guest shared folder (vboxsf) support
[tomoyo/tomoyo-test1.git] / fs / block_dev.c
index ee63c27..69bf2fb 100644 (file)
@@ -1531,7 +1531,7 @@ rescan:
                ret = blk_add_partitions(disk, bdev);
                if (ret == -EAGAIN)
                        goto rescan;
-       } else {
+       } else if (invalidate) {
                /*
                 * Tell userspace that the media / partition table may have
                 * changed.