Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

f2fs: drop unused ri parameter from truncate_partial_nodes()

The ri parameter in truncate_partial_nodes() is unused. Remove it along
with the related code. No logical changes.

Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Yongpeng Yang and committed by
Jaegeuk Kim
1e134c33 95e159ad

+3 -5
+3 -5
fs/f2fs/node.c
··· 1113 1113 } 1114 1114 1115 1115 static int truncate_partial_nodes(struct dnode_of_data *dn, 1116 - struct f2fs_inode *ri, int *offset, int depth) 1116 + int *offset, int depth) 1117 1117 { 1118 1118 struct folio *folios[2]; 1119 1119 nid_t nid[3]; ··· 1184 1184 int err = 0, cont = 1; 1185 1185 int level, offset[4], noffset[4]; 1186 1186 unsigned int nofs = 0; 1187 - struct f2fs_inode *ri; 1188 1187 struct dnode_of_data dn; 1189 1188 struct folio *folio; 1190 1189 ··· 1211 1212 set_new_dnode(&dn, inode, folio, NULL, 0); 1212 1213 folio_unlock(folio); 1213 1214 1214 - ri = F2FS_INODE(folio); 1215 1215 switch (level) { 1216 1216 case 0: 1217 1217 case 1: ··· 1220 1222 nofs = noffset[1]; 1221 1223 if (!offset[level - 1]) 1222 1224 goto skip_partial; 1223 - err = truncate_partial_nodes(&dn, ri, offset, level); 1225 + err = truncate_partial_nodes(&dn, offset, level); 1224 1226 if (err < 0 && err != -ENOENT) 1225 1227 goto fail; 1226 1228 nofs += 1 + NIDS_PER_BLOCK; ··· 1229 1231 nofs = 5 + 2 * NIDS_PER_BLOCK; 1230 1232 if (!offset[level - 1]) 1231 1233 goto skip_partial; 1232 - err = truncate_partial_nodes(&dn, ri, offset, level); 1234 + err = truncate_partial_nodes(&dn, offset, level); 1233 1235 if (err < 0 && err != -ENOENT) 1234 1236 goto fail; 1235 1237 break;