scoutfs: inode read shouldn't modify online blocks

There was a typo in the addition of i_blocks tracking that would set
online blocks to the value of offline blocks when reading an existing
inode into memory.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2018-06-05 11:33:24 -07:00
committed by Zach Brown
parent 9c80f109d5
commit 27d1f3bcf7

View File

@@ -241,7 +241,7 @@ static void load_inode(struct inode *inode, struct scoutfs_inode *cinode)
* i_blocks is initialized from online and offline and is then
* maintained as blocks come and go.
*/
inode->i_blocks = (ci->online_blocks = + ci->offline_blocks)
inode->i_blocks = (ci->online_blocks + ci->offline_blocks)
<< SCOUTFS_BLOCK_SECTOR_SHIFT;
set_item_info(ci, cinode);