Skip to content

Commit

Permalink
Fixed a nit that caused problems when creating 5 cores with 4 CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chameleon Cloud User committed Dec 13, 2021
1 parent c2413aa commit 9fc402c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Linux-5.1/fs/winefs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ struct inode *pmfs_new_inode(pmfs_transaction_t *trans, struct inode *dir,
return ERR_PTR(-EACCES);

map_id = sbi->map_id;
sbi->map_id = (sbi->map_id + 1) % (sbi->cpus-5);
sbi->map_id = (sbi->map_id + 1) % (sbi->cpus);
inode_map = &sbi->inode_maps[map_id];
mutex_lock(&inode_map->inode_table_mutex);

Expand Down

0 comments on commit 9fc402c

Please sign in to comment.