f2fs: fix error path when fail to read inline data
authorChao Yu <chao2.yu@samsung.com>
Sat, 29 Mar 2014 07:30:40 +0000 (15:30 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 2 Apr 2014 00:56:27 +0000 (09:56 +0900)
commitd54c795b495b9bd417e482286c832c9a8eb210ae
treed9cb8d56270bd124e7db2660d336d7afa1c7e6e7
parent2d7b822ad9daf0ea903accacaa89340ddd3f201f
f2fs: fix error path when fail to read inline data

We should unlock page in ->readpage() path and also should unlock & release page
in error path of ->write_begin() to avoid deadlock or memory leak.
So let's add release code to fix the problem when we fail to read inline data.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c
fs/f2fs/inline.c