Linux-ext4 Archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4: Remove stale block allocator code
@ 2009-01-10 20:28 Mike Snitzer
  2009-01-12  4:10 ` Theodore Tso
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Snitzer @ 2009-01-10 20:28 UTC (permalink / raw
  To: linux-ext4

Remove some leftovers from when the old block allocator was removed
(c2ea3fde).  ext4_sb_info is now a bit lighter.  Also remove a dangling
read_block_bitmap() prototype.

Signed-off-by: Mike Snitzer <snitzer@gmail.com>
---

diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index c668e43..a519efc 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -32,14 +32,6 @@
 #undef EXT4FS_DEBUG
 
 /*
- * Define EXT4_RESERVATION to reserve data blocks for expanding files
- */
-#define EXT4_DEFAULT_RESERVE_BLOCKS	8
-/*max window size: 1024(direct blocks) + 3([t,d]indirect blocks) */
-#define EXT4_MAX_RESERVE_BLOCKS		1027
-#define EXT4_RESERVE_WINDOW_NOT_ALLOCATED 0
-
-/*
  * Debug code
  */
 #ifdef EXT4FS_DEBUG
@@ -53,8 +45,6 @@
 #define ext4_debug(f, a...)	do {} while (0)
 #endif
 
-#define EXT4_MULTIBLOCK_ALLOCATOR	1
-
 /* prefer goal again. length */
 #define EXT4_MB_HINT_MERGE		1
 /* blocks already reserved */
diff --git a/fs/ext4/ext4_i.h b/fs/ext4/ext4_i.h
index e69acc1..2d516c0 100644
--- a/fs/ext4/ext4_i.h
+++ b/fs/ext4/ext4_i.h
@@ -33,9 +33,6 @@ typedef __u32 ext4_lblk_t;
 /* data type for block group number */
 typedef unsigned int ext4_group_t;
 
-#define rsv_start rsv_window._rsv_start
-#define rsv_end rsv_window._rsv_end
-
 /*
  * storage for cached extent
  */
diff --git a/fs/ext4/ext4_sb.h b/fs/ext4/ext4_sb.h
index 039b6ea..e318f48 100644
--- a/fs/ext4/ext4_sb.h
+++ b/fs/ext4/ext4_sb.h
@@ -65,10 +65,6 @@ struct ext4_sb_info {
 	struct blockgroup_lock s_blockgroup_lock;
 	struct proc_dir_entry *s_proc;
 
-	/* root of the per fs reservation window tree */
-	spinlock_t s_rsv_window_lock;
-	struct rb_root s_rsv_window_root;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ext4: Remove stale block allocator code
  2009-01-10 20:28 [PATCH] ext4: Remove stale block allocator code Mike Snitzer
@ 2009-01-12  4:10 ` Theodore Tso
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2009-01-12  4:10 UTC (permalink / raw
  To: Mike Snitzer; +Cc: linux-ext4

On Sat, Jan 10, 2009 at 03:28:46PM -0500, Mike Snitzer wrote:
> Remove some leftovers from when the old block allocator was removed
> (c2ea3fde).  ext4_sb_info is now a bit lighter.  Also remove a dangling
> read_block_bitmap() prototype.

Thanks for the patch.  I've added it to the ext4 patch queue.

       	       	       	    	     	- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-12  4:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-10 20:28 [PATCH] ext4: Remove stale block allocator code Mike Snitzer
2009-01-12  4:10 ` Theodore Tso

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 read-only IMAP folder(s) and NNTP newsgroup(s).