Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ead305
)
journal_start() returns ERR_PTR() and not NULL on failure.
author
adilger
<adilger>
Tue, 19 Aug 2003 22:17:20 +0000
(22:17 +0000)
committer
adilger
<adilger>
Tue, 19 Aug 2003 22:17:20 +0000
(22:17 +0000)
lustre/obdclass/fsfilt_ext3.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/fsfilt_ext3.c
b/lustre/obdclass/fsfilt_ext3.c
index
b552935
..
84c9fc3
100644
(file)
--- 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;