commit | 7adf5dfbb3af65a00e20b3ead224c3a1b40e4ec4 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Tue Jan 25 22:11:54 2011 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Fri Jan 28 16:42:34 2011 -0500 |
tree | 5723e9679a7926ea744c242cc8351e64ce7503e4 | |
parent | ad0397a7a97f55fd7f70998ec208c5d8b90310ff [diff] |
Btrfs: handle no memory properly in prepare_pages Instead of doing a BUG_ON(1) in prepare_pages if grab_cache_page() fails, just loop through the pages we've already grabbed and unlock and release them, then return -ENOMEM like we should. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>