logfs: check for the return value after calling find_or_create_page()
authorYounger Liu <liuyiyang@hisense.com>
Thu, 23 Jan 2014 23:53:47 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:54 +0000 (16:36 -0800)
commit2252b62a56601c9e31396da230b4ce792f167fb4
tree02a0cf2f7ba9a1367d8c13752b67d3819149b921
parenta3b25d9b774fbda2e6add28cf792941fd98fa999
logfs: check for the return value after calling find_or_create_page()

In get_mapping_page(), after calling find_or_create_page(), the return
value should be checked.

 This patch has been provided:
http://www.spinics.net/lists/linux-fsdevel/msg66948.html but not been
applied now.

Signed-off-by: Younger Liu <liuyiyang@hisense.com>
Cc: Younger Liu <younger.liucn@gmail.com>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Reviewed-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Cc: Jörn Engel <joern@logfs.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/logfs/segment.c