From: Ryusuke Konishi Date: Thu, 18 Jun 2009 02:42:53 +0000 (+0900) Subject: nilfs2: remove unlikely directive causing mis-conversion of error code X-Git-Tag: v2.6.31-rc3~30^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cfae3d8795f388f9de78adb0171520d19da77e9;p=pandora-kernel.git nilfs2: remove unlikely directive causing mis-conversion of error code The following error code handling in nilfs_segctor_write() function wrongly converted negative error codes to a truth value (i.e. 1): err = unlikely(err) ? : res; which originaly meant to be err = err ? : res; This mis-conversion caused that write or sync functions receive the unexpected error code. This fixes the bug by removing the unlikely directive. Signed-off-by: Ryusuke Konishi Cc: stable@kernel.org --- Reading git-diff-tree failed