ext4: fix quota accounting during migration
authorDmitry Monakhov <dmonakhov@openvz.org>
Sat, 29 Oct 2011 13:05:00 +0000 (09:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Oct 2011 13:05:00 +0000 (09:05 -0400)
commit5cb81dabcc28863e7d04e6fd9ede154bd8459c14
tree704df9fffdc243449dc5eba697cec133162ee1bf
parentfba90ffee813e2425feb9a57c532b3d297af18c3
ext4: fix quota accounting during migration

The tmp_inode should have same uid/gid as the original inode.
Otherwise new metadata blocks will be accounted to wrong quota-id,
which will result in a quota leak after the inode migration is
completed.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/ialloc.c
fs/ext4/migrate.c
fs/ext4/namei.c