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
1929 struct dx_hash_info *hinfo)1929 struct dx_hash_info *hinfo)
1930{1930{
1931 unsigned blocksize = dir->i_sb->s_blocksize;1931 unsigned blocksize = dir->i_sb->s_blocksize;
1932 unsigned count, continued;1932 unsigned continued;
1933 int count;
1933 struct buffer_head *bh2;1934 struct buffer_head *bh2;
1934 ext4_lblk_t newblock;1935 ext4_lblk_t newblock;
1935 u32 hash2;1936 u32 hash2;