* [patch 2/2]reiser4: remove not used readahead stuff
@ 2013-12-20 18:49 Edward Shishkin
0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2013-12-20 18:49 UTC (permalink / raw)
To: ReiserFS Development mailing list
[-- 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__ */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-20 18:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 18:49 [patch 2/2]reiser4: remove not used readahead stuff Edward Shishkin
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).