]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/pnode.c
usb host: fix platform driver hotplug/coldplug
[linux-2.6-omap-h63xx.git] / fs / pnode.c
index 05ba692bc540ade3b63c5f5af72e1987556bd9fe..1d8f5447f3f7c533bc848883694bf7656428a64b 100644 (file)
@@ -225,7 +225,7 @@ out:
  */
 static inline int do_refcount_check(struct vfsmount *mnt, int count)
 {
-       int mycount = atomic_read(&mnt->mnt_count);
+       int mycount = atomic_read(&mnt->mnt_count) - mnt->mnt_ghosts;
        return (mycount > count);
 }