Skip to contentSkip to conversation

jbd2: Fix comment to match the code in jbd2__journal_start()

PATCH In review Eryu Guan 3 participants 5 messages May 23, 2011 – May 26, 2011 Journalling layer for block devices (JBD2)

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 jbd2: Fix comment to match the code in jbd2__journal_start()

jbd2__journal_start() returns an ERR_PTR() value rather than NULL on failure.

---
 fs/jbd2/transaction.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
fs/jbd2/transaction.c +2 -1
index 05fa77a..7e6a5d6 100644
@@ -316,7 +316,8 @@ static handle_t *new_handle(int nblocks)
  * This function is visible to journal users (like ext3fs), so is not
  * called with the journal already locked.
  *
- * Return a pointer to a newly allocated handle, or NULL on failure
+ * Return a pointer to a newly allocated handle, or an ERR_PTR() value
+ * on failure.
  */
 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int gfp_mask)
 {
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 5 lines · Eryu Guan

jbd2__journal_start() returns an ERR_PTR() value rather than NULL on failure.

Thanks, but please include Ted Ts'o <[email protected]> in JBD2 patches.
Thanks.

Ted, I've realized that MAINTAINERS has only entry like:
JOURNALLING LAYER FOR BLOCK DEVICES (JBD)

M:      Andrew Morton <[email protected]>
M:      Jan Kara <[email protected]>
L:      [email protected]
S:      Maintained
F:      fs/jbd*/
F:      include/linux/ext*jbd*.h
F:      include/linux/jbd*.h

I guess you should add a separate entry for JBD2 so that people will find you ;).

Honza

Quoted 21 lines
---
 fs/jbd2/transaction.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
fs/jbd2/transaction.c +2 -1
index 05fa77a..7e6a5d6 100644
@@ -316,7 +316,8 @@ static handle_t *new_handle(int nblocks)
  * This function is visible to journal users (like ext3fs), so is not
  * called with the journal already locked.
  *
- * Return a pointer to a newly allocated handle, or NULL on failure
+ * Return a pointer to a newly allocated handle, or an ERR_PTR() value
+ * on failure.
  */
 handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int gfp_mask)
 {
Signature · 1 line
1.7.3.4
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
maintainer
#2 lore raw

PATCH 1/1 jbd2: Add MAINTAINERS entry

In reply to Jan Kara

Create a separate MAINTAINERS entry for jbd2

---
 MAINTAINERS |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
MAINTAINERS +10 -3
index 649600c..0682c0e 100644
@@ -3552,9 +3552,16 @@ M:	Andrew Morton <[email protected]>
 M:	Jan Kara <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	fs/jbd*/
-F:	include/linux/ext*jbd*.h
-F:	include/linux/jbd*.h
+F:	fs/jbd/
+F:	include/linux/ext3_jbd.h
+F:	include/linux/jbd.h
+
+JOURNALLING LAYER FOR BLOCK DEVICES (JBD2)
+M:	"Theodore Ts'o" <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	fs/jbd2/
+F:	include/linux/jbd2.h
 
 JSM Neo PCI based serial card
 M:	Breno Leitao <[email protected]>
Signature · 1 line
1.7.3.1
Acked-by on v1 1/1
#3 lore raw

Re: [PATCH] jbd2: Add MAINTAINERS entry

Quoted 4 lines · Ted Tso

Create a separate MAINTAINERS entry for jbd2

Honza

Quoted 31 lines
---
 MAINTAINERS |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
MAINTAINERS +10 -3
index 649600c..0682c0e 100644
@@ -3552,9 +3552,16 @@ M:	Andrew Morton <[email protected]>
 M:	Jan Kara <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	fs/jbd*/
-F:	include/linux/ext*jbd*.h
-F:	include/linux/jbd*.h
+F:	fs/jbd/
+F:	include/linux/ext3_jbd.h
+F:	include/linux/jbd.h
+
+JOURNALLING LAYER FOR BLOCK DEVICES (JBD2)
+M:	"Theodore Ts'o" <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	fs/jbd2/
+F:	include/linux/jbd2.h
 
 JSM Neo PCI based serial card
 M:	Breno Leitao <[email protected]>
Signature · 1 line
1.7.3.1
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR