All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/5] mballoc: add comments to ext4_mb_mark_free_simple()
@ 2011-02-06  4:54 Coly Li
  2011-02-24 19:07 ` Ted Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Coly Li @ 2011-02-06  4:54 UTC (permalink / raw)
  To: linux-ext4; +Cc: Alex Tomas, Theodore Tso

This patch tries to add comments to make ext4_mb_mark_free_simple more
readable.

Signed-off-by: Coly Li <bosong.ly@taobao.com>
Cc: Alex Tomas <alex@clusterfs.com>
Cc: Theodore Tso <tytso@google.com>
---
  fs/ext4/mballoc.c |    7 ++++++-
  1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 458dce0..c5534f4 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -630,7 +630,12 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
  #define mb_check_buddy(e4b)
  #endif

-/* FIXME!! need more doc */
+/*
+ * Devide blocks started from @first with length @len into
+ * smaller chunks with power of 2 blocks.
+ * Clear the bits in bitmap which the blocks of the chunk(s) covered,
+ * then increase bb_counters[] for corresponded chunk size.
+ */
  static void ext4_mb_mark_free_simple(struct super_block *sb,
  				void *buddy, ext4_grpblk_t first, ext4_grpblk_t len,
  					struct ext4_group_info *grp)
-- 
1.7.3.4

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

* Re: [PATCH 3/5] mballoc: add comments to ext4_mb_mark_free_simple()
  2011-02-06  4:54 [PATCH 3/5] mballoc: add comments to ext4_mb_mark_free_simple() Coly Li
@ 2011-02-24 19:07 ` Ted Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2011-02-24 19:07 UTC (permalink / raw)
  To: Coly Li; +Cc: linux-ext4, Alex Tomas, Theodore Tso

On Sun, Feb 06, 2011 at 12:54:00PM +0800, Coly Li wrote:
> This patch tries to add comments to make ext4_mb_mark_free_simple more
> readable.
> 
> Signed-off-by: Coly Li <bosong.ly@taobao.com>
> Cc: Alex Tomas <alex@clusterfs.com>
> Cc: Theodore Tso <tytso@google.com>

Added to the ext4 patch queue, thanks!!

						- Ted

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

end of thread, other threads:[~2011-02-24 19:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06  4:54 [PATCH 3/5] mballoc: add comments to ext4_mb_mark_free_simple() Coly Li
2011-02-24 19:07 ` Ted Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.