phy: rockchip-inno-mipi-dphy: Add reset control for PHY APB
[firefly-linux-kernel-4.4.55.git] / fs / dcache.c
index 71b6056ad35dc0765c5d188ba30f2c3534495327..7b8feb6d60c8285234d4dd7cbd82b7604addf484 100644 (file)
@@ -1322,8 +1322,11 @@ int d_set_mounted(struct dentry *dentry)
        }
        spin_lock(&dentry->d_lock);
        if (!d_unlinked(dentry)) {
-               dentry->d_flags |= DCACHE_MOUNTED;
-               ret = 0;
+               ret = -EBUSY;
+               if (!d_mountpoint(dentry)) {
+                       dentry->d_flags |= DCACHE_MOUNTED;
+                       ret = 0;
+               }
        }
        spin_unlock(&dentry->d_lock);
 out:
@@ -3023,6 +3026,7 @@ char *d_absolute_path(const struct path *path,
                return ERR_PTR(error);
        return res;
 }
+EXPORT_SYMBOL(d_absolute_path);
 
 /*
  * same as __d_path but appends "(deleted)" for unlinked files.