summaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-12-05 11:56:13 +0100
committerChris Mason <chris.mason@fusionio.com>2012-12-17 02:46:20 +0100
commitac6a2b36f9fcfbe4865550afb6d333dec6b57578 (patch)
tree7e6212618664d645a5954ddcd8de58267e0f916c /mm/swap.c
parentBtrfs: punch hole past the end of the file (diff)
downloadlinux-ac6a2b36f9fcfbe4865550afb6d333dec6b57578.tar.xz
linux-ac6a2b36f9fcfbe4865550afb6d333dec6b57578.zip
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 <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions