Skip to contentSkip to conversation

reiser4: remove not used readahead stuff

PATCH New Edward Shishkin 1 participant 1 message Dec 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 reiser4: remove not used readahead stuff

Clean up not used readahead stuff

---
 fs/reiser4/fsdata.c    |    1 -
 fs/reiser4/fsdata.h    |    2 --
 fs/reiser4/readahead.h |   10 ----------
 3 files changed, 13 deletions(-)
fs/reiser4/fsdata.c +0 -1
@@ -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);
 	}
fs/reiser4/fsdata.h +0 -2
@@ -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);
fs/reiser4/readahead.h +0 -10
@@ -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__ */