]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
commit7d81bfd52dca13404ca51f006e6f1e3a85aef614
tree5f57e12d7e2dd8e67ff6700db789a8af02d49e97
parent7aa8d5279afda10db1ae251f593cadc01575ada9
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