diff options
author | Eryu Guan <guaneryu@gmail.com> | 2011-05-24 17:09:58 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-05-24 17:09:58 -0400 |
commit | c867516de5256e9cfba2ec5847fa27e0f0ddd2c5 (patch) | |
tree | 701c4b48b81e7063efb1a3d014dfb9c11437a7f9 /fs/jbd2/transaction.c | |
parent | 93628ffb9ba67c154849ac6c387f98f5e3198b84 (diff) |
jbd2: Fix comment to match the code in jbd2__journal_start()
jbd2__journal_start() returns an ERR_PTR() value rather than NULL on
failure.
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/transaction.c')
-rw-r--r-- | 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 20065c9f2479..9dfdf010f1df 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c | |||
@@ -316,7 +316,8 @@ static handle_t *new_handle(int nblocks) | |||
316 | * This function is visible to journal users (like ext3fs), so is not | 316 | * This function is visible to journal users (like ext3fs), so is not |
317 | * called with the journal already locked. | 317 | * called with the journal already locked. |
318 | * | 318 | * |
319 | * Return a pointer to a newly allocated handle, or NULL on failure | 319 | * Return a pointer to a newly allocated handle, or an ERR_PTR() value |
320 | * on failure. | ||
320 | */ | 321 | */ |
321 | handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int gfp_mask) | 322 | handle_t *jbd2__journal_start(journal_t *journal, int nblocks, int gfp_mask) |
322 | { | 323 | { |