reiserfs-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Edward Shishkin <edward.shishkin@gmail.com>
To: ReiserFS Development mailing list <reiserfs-devel@vger.kernel.org>
Subject: [patch 2/2]reiser4: remove not used readahead stuff
Date: Fri, 20 Dec 2013 19:49:18 +0100	[thread overview]
Message-ID: <52B4912E.7070401@gmail.com> (raw)

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



[-- Attachment #2: reiser4-cleanups.patch --]
[-- Type: text/x-patch, Size: 1515 bytes --]

Clean up not used readahead stuff

Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
 fs/reiser4/fsdata.c    |    1 -
 fs/reiser4/fsdata.h    |    2 --
 fs/reiser4/readahead.h |   10 ----------
 3 files changed, 13 deletions(-)

--- linux-3.12.5.orig/fs/reiser4/fsdata.c
+++ linux-3.12.5/fs/reiser4/fsdata.c
@@ -704,7 +704,6 @@ static reiser4_file_fsdata *create_fsdat
 				  reiser4_ctx_gfp_mask_get());
 	if (fsdata != NULL) {
 		memset(fsdata, 0, sizeof *fsdata);
-		fsdata->ra1.max_window_size = VM_MAX_READAHEAD * 1024;
 		fsdata->back = file;
 		INIT_LIST_HEAD(&fsdata->dir.linkage);
 	}
--- linux-3.12.5.orig/fs/reiser4/fsdata.h
+++ linux-3.12.5/fs/reiser4/fsdata.h
@@ -117,8 +117,6 @@ typedef struct reiser4_file_fsdata {
 	struct {
 		hint_t hint;
 	} reg;
-	struct reiser4_file_ra_state ra1;
-
 } reiser4_file_fsdata;
 
 extern int reiser4_init_file_fsdata(void);
--- linux-3.12.5.orig/fs/reiser4/readahead.h
+++ linux-3.12.5/fs/reiser4/readahead.h
@@ -26,16 +26,6 @@ typedef struct {
 void formatted_readahead(znode * , ra_info_t *);
 void reiser4_init_ra_info(ra_info_t *rai);
 
-struct reiser4_file_ra_state {
-	loff_t start;		/* Current window */
-	loff_t size;
-	loff_t next_size;	/* Next window size */
-	loff_t ahead_start;	/* Ahead window */
-	loff_t ahead_size;
-	loff_t max_window_size;	/* Maximum readahead window */
-	loff_t slow_start;	/* enlarging r/a size algorithm. */
-};
-
 extern void reiser4_readdir_readahead_init(struct inode *dir, tap_t *tap);
 
 /* __READAHEAD_H__ */

                 reply	other threads:[~2013-12-20 18:49 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=52B4912E.7070401@gmail.com \
    --to=edward.shishkin@gmail.com \
    --cc=reiserfs-devel@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;
as well as URLs for NNTP newsgroup(s).