Hi, 2013-10-29 (화), 15:32 +0800, shifei10.ge: > Hi,I think we don't need to put the invalid page that get_node_page returned. > So I add " idx = i--" based on your version.Following is the patch: > > --- > fs/f2fs/node.c | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c > index 304d5ce..fd5f721 100644 > --- a/fs/f2fs/node.c > +++ b/fs/f2fs/node.c > @@ -631,19 +631,19 @@ static int truncate_partial_nodes(struct dnode_of_data > *dn, > return 0; > > /* get indirect nodes in the path */ > - for (i = 0; i < depth - 1; i++) { > + for (i = 0; i < idx + 1; i++) { > /* refernece count'll be increased */ > pages[i] = get_node_page(sbi, nid[i]); > if (IS_ERR(pages[i])) { > - depth = i + 1; > err = PTR_ERR(pages[i]); > + idx = i--;
You meant (idx = i - 1)? If so, idx = i--; is wrong. -- Jaegeuk Kim Samsung ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel