]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73488899132ee3b1e45cb98a6fbfe580c7107ab7
treef914ebaba1b4fe686260e4a6479d2050ff2cbdb2
parent223f6de868ca76a93d0f369662154505b2b384c7
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