aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4/inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/inline.c')
-rw-r--r--fs/ext4/inline.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c
index 3ea62695..5ee55bab 100644
--- a/fs/ext4/inline.c
+++ b/fs/ext4/inline.c
@@ -1603,7 +1603,14 @@ out:
struct buffer_head *ext4_find_inline_entry(struct inode *dir,
const struct qstr *d_name,
struct ext4_dir_entry_2 **res_dir,
+/*2015.1.28 add begin for sdcardfs support case-insensitive search*/
+#ifdef CONFIG_SDCARD_FS_CI_SEARCH
+ int *has_inline_data,
+ char* ci_name_buf)
+#else
int *has_inline_data)
+#endif
+/*2015.1.28 add end*/
{
int ret;
struct ext4_iloc iloc;
@@ -1623,7 +1630,13 @@ struct buffer_head *ext4_find_inline_entry(struct inode *dir,
EXT4_INLINE_DOTDOT_SIZE;
inline_size = EXT4_MIN_INLINE_DATA_SIZE - EXT4_INLINE_DOTDOT_SIZE;
ret = search_dir(iloc.bh, inline_start, inline_size,
+/*2015.1.28 add begin for sdcardfs support case-insensitive search*/
+#ifdef CONFIG_SDCARD_FS_CI_SEARCH
+ dir, d_name, 0, res_dir, ci_name_buf);
+#else
dir, d_name, 0, res_dir);
+#endif
+/*2015.1.28 add end*/
if (ret == 1)
goto out_find;
if (ret < 0)
@@ -1636,7 +1649,13 @@ struct buffer_head *ext4_find_inline_entry(struct inode *dir,
inline_size = ext4_get_inline_size(dir) - EXT4_MIN_INLINE_DATA_SIZE;
ret = search_dir(iloc.bh, inline_start, inline_size,
+/*2015.1.28 add begin for sdcardfs support case-insensitive search*/
+#ifdef CONFIG_SDCARD_FS_CI_SEARCH
+ dir, d_name, 0, res_dir, ci_name_buf);
+#else
dir, d_name, 0, res_dir);
+#endif
+/*2015.1.28 add end*/
if (ret == 1)
goto out_find;