aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]fs/sdcardfs/dentry.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/sdcardfs/dentry.c b/fs/sdcardfs/dentry.c
index c8f3bcbfb..80e753d23 100755..100644
--- a/fs/sdcardfs/dentry.c
+++ b/fs/sdcardfs/dentry.c
@@ -185,7 +185,13 @@ static void sdcardfs_canonical_path(const struct path *path,
sdcardfs_get_real_lower(path->dentry, actual_path);
}
+static int sdcardfs_d_delete(const struct dentry * dentry)
+{
+ return dentry->d_inode && !S_ISDIR(dentry->d_inode->i_mode);
+}
+
const struct dentry_operations sdcardfs_ci_dops = {
+ .d_delete = sdcardfs_d_delete,
.d_revalidate = sdcardfs_d_revalidate,
.d_release = sdcardfs_d_release,
.d_hash = sdcardfs_hash_ci,