lkml.org 
[lkml]   [2012]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] fadvise: perform WILLNEED readahead in a workqueue
Eric Wong <normalperson@yhbt.net> wrote:
> Perhaps squashing something like the following will work?

Last hunk should've had a return before skip_ra:

--- a/mm/readahead.c
+++ b/mm/readahead.c
@@ -264,6 +266,10 @@ void wq_page_cache_readahead(struct address_space *mapping, struct file *filp,
req->nr_to_read = nr_to_read;

queue_work(readahead_wq, &req->work);
+
+ return;
+skip_ra:
+ fput(filp);
}

/*
--
Eric Wong

\
 
 \ /
  Last update: 2012-12-16 04:21    [W:0.149 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site