ext4: ea_inode owner should be the same as the inode owner
authorTahsin Erdogan <tahsin@google.com>
Thu, 22 Jun 2017 01:27:00 +0000 (21:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 01:27:00 +0000 (21:27 -0400)
commit9e1ba00161a6f3bec8d4e7912025cbf889878e59
treeab034b602e91ed6b5a147ef3d16923fb36352ab6
parentbd3b963b273e247e13979f98812a6e4979b5c1e4
ext4: ea_inode owner should be the same as the inode owner

Quota charging is based on the ownership of the inode. Currently, the
xattr inode owner is set to the caller which may be different from the
parent inode owner. This is inconsistent with how quota is charged for
xattr block and regular data block writes.

Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/xattr.c