f2fs: avoid extra ++ while returning from get_node_path
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 2 Mar 2013 03:41:31 +0000 (12:41 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 18 Mar 2013 12:00:36 +0000 (21:00 +0900)
commit25c0a6e529b56ca010e1f46239edd07c1b484b63
tree164db0f8936c4260340d6df1ef58036de8aca1af
parent5a20d339c785d98d8b050b9afc098e4184a6098c
f2fs: avoid extra ++ while returning from get_node_path

In all the breaking conditions in get_node_path, 'n' is used to
track index in offset[] array, but while breaking out also, in all
paths n++ is done.
So, remove the ++ from breaking paths. Also, avoid
reset of 'level=0' in first case.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c