File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ include(FetchContent)
33FetchContent_Declare(
44 erofs-utils
55 GIT_REPOSITORY https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git
6- GIT_TAG eec6f7a2755dfccc8f655aa37cf6f26db9164e60
6+ GIT_TAG 51b5939b5f783221310d25146e6a2019ba8129b6
77)
88
99FetchContent_MakeAvailable(erofs-utils)
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ int erofs_mkfs(struct erofs_mkfs_cfg *mkfs_cfg)
3434 struct erofs_sb_info *sbi;
3535 struct erofs_buffer_head *sb_bh;
3636 struct erofs_inode *root = NULL ;
37- erofs_blk_t nblocks;
3837
3938 erofstar = mkfs_cfg->erofstar ;
4039 sbi = mkfs_cfg->sbi ;
@@ -115,7 +114,7 @@ int erofs_mkfs(struct erofs_mkfs_cfg *mkfs_cfg)
115114 erofs_iput (root);
116115 root = NULL ;
117116
118- err = erofs_writesb (sbi, sb_bh, &nblocks );
117+ err = erofs_writesb (sbi, sb_bh);
119118 if (err) {
120119 LOG_ERROR (" [erofs] Fail to writesb" );
121120 goto exit;
@@ -126,7 +125,7 @@ int erofs_mkfs(struct erofs_mkfs_cfg *mkfs_cfg)
126125 if (err)
127126 goto exit;
128127
129- err = erofs_dev_resize (sbi, nblocks );
128+ err = erofs_dev_resize (sbi, sbi-> primarydevice_blocks );
130129exit:
131130 if (root)
132131 erofs_iput (root);
You can’t perform that action at this time.
0 commit comments