* NOTE! unlike strncmp, ext3_match returns 1 for success, 0 for failure. * * `len <= EXT3_NAME_LEN' is guaranteed by caller. * `de != NULL' is guaranteed by caller. */
| 3344 | * `de != NULL' is guaranteed by caller. |
| 3345 | */ |
| 3346 | static inline int ext3_match (int len, const char * const name, |
| 3347 | struct ext3_dir_entry_2 * de) |
| 3348 | { |
| 3349 | if (len != de->name_len) |
| 3350 | return 0; |
| 3351 | if (!de->inode) |
| 3352 | return 0; |
| 3353 | return !_strnicmp(name, de->name, len); |
| 3354 | } |
| 3355 | |
| 3356 | /* calculate the first block number of the group */ |
| 3357 | static inline ext3_fsblk_t |
no test coverage detected