Since dx_make_map() may return -EFSCORRUPTED now, so change "count" to be a signed integer so we can correctly check for an error code returned by dx_make_map().
Unified · Split
| @@ -1929,7 +1929,8 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, · 1928 unmodified lines | ||
| 1929 | 1929 | struct dx_hash_info *hinfo) |
| 1930 | 1930 | { |
| 1931 | 1931 | unsigned blocksize = dir->i_sb->s_blocksize; |
| 1932 | − unsigned count, continued; | |
| 1932 | + unsigned continued; | |
| 1933 | + int count; | |
| 1933 | 1934 | struct buffer_head *bh2; |
| 1934 | 1935 | ext4_lblk_t newblock; |
| 1935 | 1936 | u32 hash2; |