linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] jbd2: Fix comment to match the code in jbd2__journal_start()
@ 2011-05-23 16:17 Eryu Guan
  2011-05-23 22:32 ` Jan Kara
  2011-05-24 21:38 ` [PATCH] jbd2: Fix comment to match the code in jbd2__journal_start() Ted Ts'o
  0 siblings, 2 replies; 5+ messages in thread
From: Eryu Guan @ 2011-05-23 16:17 UTC (permalink / raw)
  To: linux-ext4; +Cc: Eryu Guan, Jan Kara

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

Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
---
 fs/jbd2/transaction.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 05fa77a..7e6a5d6 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -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)
 {
-- 
1.7.3.4


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

end of thread, other threads:[~2011-05-26 15:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23 16:17 [PATCH] jbd2: Fix comment to match the code in jbd2__journal_start() Eryu Guan
2011-05-23 22:32 ` Jan Kara
2011-05-26 13:53   ` [PATCH] jbd2: Add MAINTAINERS entry Theodore Ts'o
2011-05-26 15:01     ` Jan Kara
2011-05-24 21:38 ` [PATCH] jbd2: Fix comment to match the code in jbd2__journal_start() Ted Ts'o

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 NNTP newsgroup(s).