commit | 388b66f727e39474a2160aa0d35402f4821aa8ae | [log] [tgz] |
---|---|---|
author | Andreas Dilger <adilger@whamcloud.com> | Sat Jun 11 12:51:21 2011 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Sat Jun 11 12:51:21 2011 -0400 |
tree | fa4ef0436d07d896390aed240c769dfbb4853e0e | |
parent | 8185ab9f38f0e9cd06feab9d8e59d059bde84bf6 [diff] |
ext2fs: fix error handling in ext2fs_add_dir_block In ext2fs_add_dir_block() the dblist allocation size was changed to grow as the number of items in the dblist increases. However, the error handling in case of allocation failure wasn't changed to match. Fix the error case to revert to the old allocation size on failure. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>