History

ext4: make variable "count" signed

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().

Ding Xiang committed 4 years ago

Commit bc75a6e1 parent cf4ff931 file · +2 −1Browse files

Unified · Split

fs/ext4/namei.c+2−1
@@ -1929,7 +1929,8 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir, · 1928 unmodified lines
19291929 struct dx_hash_info *hinfo)
19301930 {
19311931 unsigned blocksize = dir->i_sb->s_blocksize;
1932− unsigned count, continued;
1932+ unsigned continued;
1933+ int count;
19331934 struct buffer_head *bh2;
19341935 ext4_lblk_t newblock;
19351936 u32 hash2;