mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-09 13:23:14 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user