ext3: Add error check in ext3_mkdir()
authorNamhyung Kim <namhyung@gmail.com>
Tue, 16 Nov 2010 11:18:12 +0000 (20:18 +0900)
committerJan Kara <jack@suse.cz>
Thu, 6 Jan 2011 10:52:14 +0000 (11:52 +0100)
commit2b543edae2d9161ae8dda1d85cbd28ef8a166cc0
tree307deb77e93a73543b280210e02fcceca21ec29b
parent99fbb1e2af5da27d3ee75c2e421712fe9d083fb6
ext3: Add error check in ext3_mkdir()

Check return value of ext3_journal_get_write_access, ext3_journal_dirty_metadata
and ext3_mark_inode_dirty. Consolidate error path under new label 'out_clear_inode'
and adjust bh releasing appropriately.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/namei.c