diff options
author | Miao Xie <[email protected]> | 2012-12-05 10:56:13 +0000 |
---|---|---|
committer | Chris Mason <[email protected]> | 2012-12-16 20:46:20 -0500 |
commit | ac6a2b36f9fcfbe4865550afb6d333dec6b57578 (patch) | |
tree | 7e6212618664d645a5954ddcd8de58267e0f916c /tools/perf/util/trace-event-scripting.c | |
parent | 7426cc04d407621773af3a0403e57642e40c36bf (diff) |
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 <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions