]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: clean up inode bitmaps manipulation in ext4_free_inode
authorDmitry Monakhov <dmonakhov@openvz.org>
Sun, 16 May 2010 11:00:00 +0000 (07:00 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:35 +0000 (18:07 -0500)
commit9f12841d5b19cc45c59560cb2b13267540765ce4
tree9c6f19003be43e613f162b4182af50ff20a1c79a
parent36e647ecd1a71a982d9c8538e400e1a3bbf1b9cc
ext4: clean up inode bitmaps manipulation in ext4_free_inode

commit d17413c08cd2b1dd2bf2cfdbb0f7b736b2b2b15c upstream.

- Reorganize locking scheme to batch two atomic operation in to one.
  This also allow us to state what healthy group must obey following rule
  ext4_free_inodes_count(sb, gdp) == ext4_count_free(inode_bitmap, NUM);
- Fix possible undefined pointer dereference.
- Even if group descriptor stats aren't accessible we have to update
  inode bitmaps.
- Move non-group members update out of group_lock.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ext4/ialloc.c