ext4: add more error checks to ext4_mkdir()
authorNamhyung Kim <namhyung@gmail.com>
Mon, 10 Jan 2011 17:11:16 +0000 (12:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2011 17:11:16 +0000 (12:11 -0500)
commitdabd991f9d8e3232bb4531c920daddac8d10d313
treef914ebaba1b4fe686260e4a6479d2050ff2cbdb2
parentf1dffc4c5431c6bd8972489636573c5cd09ab672
ext4: add more error checks to ext4_mkdir()

Check return value of ext4_journal_get_write_access,
ext4_journal_dirty_metadata and ext4_mark_inode_dirty. Move brelse()
under 'out_stop' to release bh properly in case of journal error.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c