Commit 30ef0e0
exfat: remove unnecessary read entry in __exfat_rename()
To determine whether it is a directory, there is no need to read its
directory entry, just use S_ISDIR(inode->i_mode).
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Daniel Palmer <daniel.palmer@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>1 parent 2e94e5b commit 30ef0e0
1 file changed
Lines changed: 4 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | | - | |
1135 | 1134 | | |
1136 | | - | |
1137 | 1135 | | |
1138 | 1136 | | |
1139 | 1137 | | |
1140 | 1138 | | |
1141 | 1139 | | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | 1140 | | |
1146 | 1141 | | |
1147 | 1142 | | |
| |||
1167 | 1162 | | |
1168 | 1163 | | |
1169 | 1164 | | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | 1165 | | |
1180 | | - | |
| 1166 | + | |
1181 | 1167 | | |
1182 | 1168 | | |
1183 | 1169 | | |
| |||
1209 | 1195 | | |
1210 | 1196 | | |
1211 | 1197 | | |
| 1198 | + | |
| 1199 | + | |
1212 | 1200 | | |
1213 | 1201 | | |
1214 | 1202 | | |
| |||
1225 | 1213 | | |
1226 | 1214 | | |
1227 | 1215 | | |
1228 | | - | |
| 1216 | + | |
1229 | 1217 | | |
1230 | 1218 | | |
1231 | 1219 | | |
| |||
0 commit comments