Commit 874d3c60 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Christoph Hellwig

XFS: Return -ENOMEM on vmap failure in _pagebuf_lookup_pages

Date:  Fri Sep 13 07:05:57 PDT 2002
Workarea:  dhcp212.munich.sgi.com:/home/hch/repo/ptools/linux-2.5-xfs
Author:  hch
Merged by:  hch
Merged mods:  2.4.x-xfs:slinx:127349a

The following file(s) were checked into:
  bonnie.engr.sgi.com:/isms/slinx/2.5.x-xfs


Modid:  2.5.x-xfs:slinx:127349a
linux/fs/xfs/pagebuf/page_buf.c - 1.59
	- Merge of 2.4.x-xfs:slinx:127349a by hch.
	  Return -ENOMEM on vmap failure in _pagebuf_lookup_pages
parent 26908f63
......@@ -586,8 +586,8 @@ _pagebuf_lookup_pages(
if (as_list_len > 64)
purge_addresses();
pb->pb_addr = vmap(pb->pb_pages, page_count);
if (!pb->pb_addr)
BUG();
if (pb->pb_addr == NULL)
return -ENOMEM;
pb->pb_addr += pb->pb_offset;
pb->pb_flags |= PBF_MAPPED | _PBF_ADDR_ALLOCATED;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment