All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] Patch to move ocfs2_slot_info to slot_map.h
@ 2009-02-28  2:00 Srinivas Eeda
  2009-02-28  2:00 ` [Ocfs2-devel] [PATCH 1/1] " Srinivas Eeda
  2009-03-02  0:50 ` [Ocfs2-devel] " Tao Ma
  0 siblings, 2 replies; 4+ messages in thread
From: Srinivas Eeda @ 2009-02-28  2:00 UTC (permalink / raw)
  To: ocfs2-devel


Next 3 patches does the following
1) movies ocfs2_slot_info struct from slot_map.c to slot_map.h
2) patch to recover orphans during mount even if the journal is clean
3) patch to recovery orphans in offline slots

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

* [Ocfs2-devel] [PATCH 1/1] Patch to move ocfs2_slot_info to slot_map.h
  2009-02-28  2:00 [Ocfs2-devel] Patch to move ocfs2_slot_info to slot_map.h Srinivas Eeda
@ 2009-02-28  2:00 ` Srinivas Eeda
  2009-02-28  2:31   ` Joel Becker
  2009-03-02  0:50 ` [Ocfs2-devel] " Tao Ma
  1 sibling, 1 reply; 4+ messages in thread
From: Srinivas Eeda @ 2009-02-28  2:00 UTC (permalink / raw)
  To: ocfs2-devel

This patch is required to access slot_info struct for a patch that recovers
orphans from offline slots.

Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com>
---
 fs/ocfs2/slot_map.c |   17 -----------------
 fs/ocfs2/slot_map.h |   15 +++++++++++++++
 2 files changed, 15 insertions(+), 17 deletions(-)

diff --git a/fs/ocfs2/slot_map.c b/fs/ocfs2/slot_map.c
index 40661e7..9f82a5f 100644
--- a/fs/ocfs2/slot_map.c
+++ b/fs/ocfs2/slot_map.c
@@ -42,23 +42,6 @@
 
 #include "buffer_head_io.h"
 
-
-struct ocfs2_slot {
-	int sl_valid;
-	unsigned int sl_node_num;
-};
-
-struct ocfs2_slot_info {
-	int si_extended;
-	int si_slots_per_block;
-	struct inode *si_inode;
-	unsigned int si_blocks;
-	struct buffer_head **si_bh;
-	unsigned int si_num_slots;
-	struct ocfs2_slot *si_slots;
-};
-
-
 static int __ocfs2_node_num_to_slot(struct ocfs2_slot_info *si,
 				    unsigned int node_num);
 
diff --git a/fs/ocfs2/slot_map.h b/fs/ocfs2/slot_map.h
index 601c95f..12afe24 100644
--- a/fs/ocfs2/slot_map.h
+++ b/fs/ocfs2/slot_map.h
@@ -27,6 +27,21 @@
 #ifndef SLOTMAP_H
 #define SLOTMAP_H
 
+struct ocfs2_slot {
+	int sl_valid;
+	unsigned int sl_node_num;
+};
+
+struct ocfs2_slot_info {
+	int si_extended;
+	int si_slots_per_block;
+	struct inode *si_inode;
+	unsigned int si_blocks;
+	struct buffer_head **si_bh;
+	unsigned int si_num_slots;
+	struct ocfs2_slot *si_slots;
+};
+
 int ocfs2_init_slot_info(struct ocfs2_super *osb);
 void ocfs2_free_slot_info(struct ocfs2_super *osb);
 
-- 
1.5.6.5

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

* [Ocfs2-devel] [PATCH 1/1] Patch to move ocfs2_slot_info to slot_map.h
  2009-02-28  2:00 ` [Ocfs2-devel] [PATCH 1/1] " Srinivas Eeda
@ 2009-02-28  2:31   ` Joel Becker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Becker @ 2009-02-28  2:31 UTC (permalink / raw)
  To: ocfs2-devel

On Fri, Feb 27, 2009 at 06:00:54PM -0800, Srinivas Eeda wrote:
> This patch is required to access slot_info struct for a patch that recovers
> orphans from offline slots.

	Looking at your later code, it really looks like you need a set
of accessor functions.  There's no reason to expose slot_info in the
header.

Joel

-- 

"You must remember this:
 A kiss is just a kiss,
 A sigh is just a sigh.
 The fundamental rules apply
 As time goes by."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

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

* [Ocfs2-devel] Patch to move ocfs2_slot_info to slot_map.h
  2009-02-28  2:00 [Ocfs2-devel] Patch to move ocfs2_slot_info to slot_map.h Srinivas Eeda
  2009-02-28  2:00 ` [Ocfs2-devel] [PATCH 1/1] " Srinivas Eeda
@ 2009-03-02  0:50 ` Tao Ma
  1 sibling, 0 replies; 4+ messages in thread
From: Tao Ma @ 2009-03-02  0:50 UTC (permalink / raw)
  To: ocfs2-devel

Hi Srini,
	could you please use git-format-patch -n next time to generate the 
patch set? It would make the patches have title like [1/3], [2/3]... So 
that it is easy for readers to read from the beginning. Thanks.

Regards,
Tao

Srinivas Eeda wrote:
> Next 3 patches does the following
> 1) movies ocfs2_slot_info struct from slot_map.c to slot_map.h
> 2) patch to recover orphans during mount even if the journal is clean
> 3) patch to recovery orphans in offline slots
> 
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel

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

end of thread, other threads:[~2009-03-02  0:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28  2:00 [Ocfs2-devel] Patch to move ocfs2_slot_info to slot_map.h Srinivas Eeda
2009-02-28  2:00 ` [Ocfs2-devel] [PATCH 1/1] " Srinivas Eeda
2009-02-28  2:31   ` Joel Becker
2009-03-02  0:50 ` [Ocfs2-devel] " Tao Ma

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.