Skip to content

Commit

Permalink
jbd: Fix comment to match the code in journal_start()
Browse files Browse the repository at this point in the history
journal_start returns an ERR_PTR() value rather than NULL on failure.

Cc: Jan Kara <[email protected]>
Signed-off-by: Eryu Guan <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
guaneryu authored and jankara committed May 23, 2011
1 parent 9199e66 commit c2b6773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/jbd/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c2b6773

Please sign in to comment.