diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-11-24 17:53:13 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-01-10 19:04:06 +0100 |
commit | 156e74312f1ffc0a2639c24c771c5a0e106f0505 (patch) | |
tree | a14f861cf4bd93a8aa043532aedd2164f646feab /fs/ext3/namei.c | |
parent | ext3: Add journal error check in resize.c (diff) | |
download | linux-156e74312f1ffc0a2639c24c771c5a0e106f0505.tar.xz linux-156e74312f1ffc0a2639c24c771c5a0e106f0505.zip |
ext3: Add more journal error check
Check return value of ext3_journal_get_write_acccess() and
ext3_journal_dirty_metadata().
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext3/namei.c')
-rw-r--r-- | fs/ext3/namei.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index e69eed547242..cc682ab55b73 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c @@ -1598,7 +1598,9 @@ static int ext3_dx_add_entry(handle_t *handle, struct dentry *dentry, if (err) goto journal_error; } - ext3_journal_dirty_metadata(handle, frames[0].bh); + err = ext3_journal_dirty_metadata(handle, frames[0].bh); + if (err) + goto journal_error; } de = do_split(handle, dir, &bh, frame, &hinfo, &err); if (!de) |