[PATCH 1/1] logfs: incorrect check for read_cache_page return

2015-03-24 Thread Chengyu Song
read_cache_page returns -EIO on error, so the return should be checked against ERROR_VALUE instead of NULL. Signed-off-by: Chengyu Song --- fs/logfs/segment.c | 4 ++-- fs/logfs/super.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/logfs/segment.c

[PATCH 1/1] logfs: incorrect check for read_cache_page return

2015-03-24 Thread Chengyu Song
read_cache_page returns -EIO on error, so the return should be checked against ERROR_VALUE instead of NULL. Signed-off-by: Chengyu Song cson...@gatech.edu --- fs/logfs/segment.c | 4 ++-- fs/logfs/super.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git