From: Miao Xie Date: Wed, 5 Dec 2012 10:56:13 +0000 (+0000) Subject: Btrfs: fix wrong return value of btrfs_truncate_page() X-Git-Tag: v3.8-rc1~71^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac6a2b36f9fcfbe4865550afb6d333dec6b57578;p=pandora-kernel.git Btrfs: fix wrong return value of btrfs_truncate_page() ret variant may be set to 0 if we read page successfully, but it might be released before we lock it again. On this case, if we fail to allocate a new page, we will return 0, it is wrong, fix it. Signed-off-by: Miao Xie Signed-off-by: Chris Mason --- Reading git-diff-tree failed