diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index 3371629..87a48c4 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -121,6 +121,9 @@ struct dentry *sysfs_get_dentry(struct sysfs_dirent *sd)
 	}
 	return dentry;
 }
+#ifdef CONFIG_AUFS_SYSFS_GET_DENTRY_PATCH
+EXPORT_SYMBOL(sysfs_get_dentry);
+#endif
 
 /**
  *	sysfs_get_active - get an active reference to sysfs_dirent
