vfs: change d_canonical_path to take two paths
authorDaniel Rosenberg <drosen@google.com>
Fri, 22 Apr 2016 07:00:14 +0000 (00:00 -0700)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:15 +0000 (18:03 +0200)
bug: 23904372
Change-Id: I4a686d64b6de37decf60019be1718e1d820193e6
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/dentry.c

index 6497fb7199f35a2248e86a76d04002f1ccb37473..b2fa36f13e73b41b2a43c55b5920cf371f95236c 100644 (file)
@@ -173,11 +173,15 @@ static int sdcardfs_cmp_ci(const struct dentry *parent,
        return 1;
 }
 
+static void sdcardfs_canonical_path(const struct path *path, struct path *actual_path) {
+       sdcardfs_get_real_lower(path->dentry, actual_path);
+}
+
 const struct dentry_operations sdcardfs_ci_dops = {
        .d_revalidate   = sdcardfs_d_revalidate,
        .d_release      = sdcardfs_d_release,
        .d_hash         = sdcardfs_hash_ci,
        .d_compare      = sdcardfs_cmp_ci,
-       .d_canonical_path = sdcardfs_get_real_lower,
+       .d_canonical_path = sdcardfs_canonical_path,
 };