aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4/inline.c
diff options
context:
space:
mode:
authorwzedlare <vedatak01@gmail.com>2017-06-18 16:38:26 +0000
committerwzedlare <vedatak01@gmail.com>2017-06-19 16:57:11 +0000
commitc7d4e3fd588e3ba3d3fa4d5cfa224aa54bc288bf (patch)
treeb8b64cb9deb6832c1e41f58f0f143514beafc709 /fs/ext4/inline.c
parent28c99c87b881bb664c44bb26e80a681f87d54e60 (diff)
p2a42: Import fully working kernel sourceHEADn7.1
Change-Id: Ia4c94f09e29843b1af34d466243378a357e97b70
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;