On Fri, 2011-04-01 at 20:04 +0530, Srikar Dronamraju wrote: > + if (vma) { > + /* > + * We get here from uprobe_mmap() -- the case where we > + * are trying to copy an instruction from a page that's > + * not yet in page cache. > + * > + * Read page in before copy. > + */ > + struct file *filp = vma->vm_file; > + > + if (!filp) > + return -EINVAL; > + page_cache_sync_readahead(mapping, &filp->f_ra, filp, idx, 1); > + } > + page = grab_cache_page(mapping, idx); So I don't see why that isn't so for the normal install_uprobe() <- register_uprobe() path. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href