f2fs: check the level before calling get_nid function
authorChangman Lee <cm224.lee@samsung.com>
Tue, 19 Feb 2013 22:47:06 +0000 (07:47 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 18 Mar 2013 12:00:34 +0000 (21:00 +0900)
commit52c2db3f95ff8e8d9650885d6d66b8258ded1e38
tree7ef8f09a14dc9495a267adb3a3dad89bd4584ae0
parent266e97a81cf73d1a0dac5f68391da382630a80b7
f2fs: check the level before calling get_nid function

The caller of get_nid should be careful not to put lower value than
NODE_DIR1_BLOCK in case of level is zero.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c