path: root/tests/hugetests.h
diff options
authorJan Stancek <jstancek@redhat.com>2012-09-06 13:11:38 +0200
committerEric B Munson <emunson@mgebm.net>2012-09-06 21:39:54 -0400
commit97a6efd9d0c660d4bdabdb579635c46c3f20e156 (patch)
treef1c630fe16ec34074f9f1cdb58576e7b800db320 /tests/hugetests.h
parent4f5a61606afe6911bd15f1f0645a2240eafbf7ed (diff)
ignore return value from readahead()
do_readahead() requires a_ops->readpage to be != NULL: 568 static ssize_t 569 do_readahead(struct address_space *mapping, struct file *filp, 570 pgoff_t index, unsigned long nr) 571 { 572 if (!mapping || !mapping->a_ops || !mapping->a_ops->readpage) 573 return -EINVAL; 574 575 force_page_cache_readahead(mapping, filp, index, nr); 576 return 0; 577 } but following commit removed readpage from hugetlbfs: commit f2deae9d4e70793568ef9e85d227abb7bef5b622 Author: Mel Gorman <mel@csn.ul.ie> Date: Wed May 13 15:56:10 2009 +0100 Remove implementation of readpage from the hugetlbfs_aops So this is going to always return EINVAL on patched kernels. Ignore return value, regardless of readahead() outcome testcase will still check if reservation counter gets corrupted. Signed-off-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Eric B Munson <emunson@mgebm.net>
Diffstat (limited to 'tests/hugetests.h')
0 files changed, 0 insertions, 0 deletions