Skip to contentSkip to conversation

jbd: Fix comment to match the code in journal_start()

PATCH In review Eryu Guan 2 participants 2 messages May 23, 2011

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 jbd: Fix comment to match the code in journal_start()

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

---
 fs/jbd/transaction.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
fs/jbd/transaction.c +2 -1
index 60d2319..f7ee81a 100644
@@ -266,7 +266,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 *journal_start(journal_t *journal, int nblocks)
 {
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 4 lines · Eryu Guan

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

Tnanks. Merged.

Honza

Quoted 21 lines
---
 fs/jbd/transaction.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
fs/jbd/transaction.c +2 -1
index 60d2319..f7ee81a 100644
@@ -266,7 +266,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 *journal_start(journal_t *journal, int nblocks)
 {
Signature · 1 line
1.7.3.4
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR