From 2b27cd959736b5aea310af2e854dea5c95b477a2 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 19 Aug 2003 22:17:20 +0000 Subject: [PATCH] journal_start() returns ERR_PTR() and not NULL on failure. --- lustre/obdclass/fsfilt_ext3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/fsfilt_ext3.c b/lustre/obdclass/fsfilt_ext3.c index b552935..84c9fc3 100644 --- a/lustre/obdclass/fsfilt_ext3.c +++ b/lustre/obdclass/fsfilt_ext3.c @@ -571,9 +571,9 @@ static int fsfilt_ext3_write_record(struct file *file, void *buf, int size, journal = EXT3_SB(inode->i_sb)->s_journal; handle = journal_start(journal, EXT3_DATA_TRANS_BLOCKS + 2); - if (handle == NULL) { + if (IS_ERR(handle)) { CERROR("can't start transaction\n"); - return -EIO; + return PTR_ERR(handle); } block = *offs >> inode->i_blkbits; -- 1.8.3.1