public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Shane Shrybman <shrybman@aei.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] page_cache_readahead unused variable
Date: Thu, 22 Jul 2004 23:22:59 -0400	[thread overview]
Message-ID: <1090552979.2887.13.camel@mars> (raw)

[-- Attachment #1: Type: text/plain, Size: 68 bytes --]

Minor cleanup. Removal of unused variable in mm/readahead.c.

Shane

[-- Attachment #2: page_cache_readahead_unused_var.diff --]
[-- Type: text/x-patch, Size: 658 bytes --]

Binary files linux-2.6.7-mm7.orig/mm/.readahead.c.swp and linux-2.6.7-mm7/mm/.readahead.c.swp differ
diff -urN linux-2.6.7-mm7.orig/mm/readahead.c linux-2.6.7-mm7/mm/readahead.c
--- linux-2.6.7-mm7.orig/mm/readahead.c	2004-07-22 22:28:47.000000000 -0400
+++ linux-2.6.7-mm7/mm/readahead.c	2004-07-22 23:04:50.000000000 -0400
@@ -349,7 +349,6 @@
 			struct file *filp, unsigned long offset)
 {
 	unsigned max;
-	unsigned min;
 	unsigned orig_next_size;
 	unsigned actual;
 	int first_access=0;
@@ -374,7 +373,6 @@
 	if (max == 0)
 		goto out;	/* No readahead */
 
-	min = get_min_readahead(ra);
 	orig_next_size = ra->next_size;
 
 	if (ra->next_size == 0) {

                 reply	other threads:[~2004-07-23  3:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1090552979.2887.13.camel@mars \
    --to=shrybman@aei.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox