summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-03-23 16:39:30 -0700
committerAmit Pundir <amit.pundir@linaro.org>2016-04-07 16:50:03 +0530
commit1a98a1b1e6af9dbd7a0d4253b13f9d2d83124053 (patch)
tree1038407cd2c2083c43b0d64aaa719c7101ee1496 /fs
parentce15174caf1ce927a9255b23438977411082d20d (diff)
sdcardfs: remove effectless config option
CONFIG_SDCARD_FS_CI_SEARCH only guards a define for LOOKUP_CASE_INSENSITIVE, which is never used in the kernel. Remove both, along with the option matching that supports it. Change-Id: I363a8f31de8ee7a7a934d75300cc9ba8176e2edf Signed-off-by: Daniel Rosenberg <drosen@google.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/sdcardfs/Kconfig5
-rw-r--r--fs/sdcardfs/lookup.c7
-rw-r--r--fs/sdcardfs/main.c15
-rw-r--r--fs/sdcardfs/sdcardfs.h6
4 files changed, 1 insertions, 32 deletions
diff --git a/fs/sdcardfs/Kconfig b/fs/sdcardfs/Kconfig
index ab25f88ebb37..a1c103316ac7 100644
--- a/fs/sdcardfs/Kconfig
+++ b/fs/sdcardfs/Kconfig
@@ -11,8 +11,3 @@ config SDCARD_FS_FADV_NOACTIVE
default y
help
Sdcardfs supports fadvise noactive mode.
-
-config SDCARD_FS_CI_SEARCH
- tristate "sdcardfs case-insensitive search support"
- depends on SDCARD_FS
- default y
diff --git a/fs/sdcardfs/lookup.c b/fs/sdcardfs/lookup.c
index f80abcb6b467..a01b06a514fd 100644
--- a/fs/sdcardfs/lookup.c
+++ b/fs/sdcardfs/lookup.c
@@ -238,13 +238,8 @@ static struct dentry *__sdcardfs_lookup(struct dentry *dentry,
lower_dir_mnt = lower_parent_path->mnt;
/* Use vfs_path_lookup to check if the dentry exists or not */
- if (sbi->options.lower_fs == LOWER_FS_EXT4) {
- err = vfs_path_lookup(lower_dir_dentry, lower_dir_mnt, name,
- LOOKUP_CASE_INSENSITIVE, &lower_path);
- } else if (sbi->options.lower_fs == LOWER_FS_FAT) {
- err = vfs_path_lookup(lower_dir_dentry, lower_dir_mnt, name, 0,
+ err = vfs_path_lookup(lower_dir_dentry, lower_dir_mnt, name, 0,
&lower_path);
- }
/* no error: handle positive dentries */
if (!err) {
diff --git a/fs/sdcardfs/main.c b/fs/sdcardfs/main.c
index 80aa355d801e..fa11a0458b84 100644
--- a/fs/sdcardfs/main.c
+++ b/fs/sdcardfs/main.c
@@ -41,7 +41,6 @@ static const match_table_t sdcardfs_tokens = {
{Opt_fsgid, "fsgid=%u"},
{Opt_gid, "gid=%u"},
{Opt_debug, "debug"},
- {Opt_lower_fs, "lower_fs=%s"},
{Opt_mask, "mask=%u"},
{Opt_userid, "userid=%d"},
{Opt_multiuser, "multiuser"},
@@ -64,8 +63,6 @@ static int parse_options(struct super_block *sb, char *options, int silent,
opts->multiuser = false;
opts->fs_user_id = 0;
opts->gid = 0;
- /* by default, we use LOWER_FS_EXT4 as lower fs type */
- opts->lower_fs = LOWER_FS_EXT4;
/* by default, 0MB is reserved */
opts->reserved_mb = 0;
@@ -113,18 +110,6 @@ static int parse_options(struct super_block *sb, char *options, int silent,
case Opt_multiuser:
opts->multiuser = true;
break;
- case Opt_lower_fs:
- string_option = match_strdup(&args[0]);
- if (!strcmp("ext4", string_option)) {
- opts->lower_fs = LOWER_FS_EXT4;
- } else if (!strcmp("fat", string_option)) {
- opts->lower_fs = LOWER_FS_FAT;
- } else {
- kfree(string_option);
- goto invalid_option;
- }
- kfree(string_option);
- break;
case Opt_reserved_mb:
if (match_int(&args[0], &option))
return 0;
diff --git a/fs/sdcardfs/sdcardfs.h b/fs/sdcardfs/sdcardfs.h
index 1b85f4e70324..f111f898b630 100644
--- a/fs/sdcardfs/sdcardfs.h
+++ b/fs/sdcardfs/sdcardfs.h
@@ -123,11 +123,6 @@ typedef enum {
PERM_ANDROID_MEDIA,
} perm_t;
-typedef enum {
- LOWER_FS_EXT4,
- LOWER_FS_FAT,
-} lower_fs_t;
-
struct sdcardfs_sb_info;
struct sdcardfs_mount_options;
@@ -191,7 +186,6 @@ struct sdcardfs_mount_options {
gid_t fs_low_gid;
userid_t fs_user_id;
gid_t gid;
- lower_fs_t lower_fs;
mode_t mask;
bool multiuser;
unsigned int reserved_mb;