]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: ext4_xattr_value_same() should return false for external data
authorTahsin Erdogan <tahsin@google.com>
Thu, 22 Jun 2017 02:02:06 +0000 (22:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 02:02:06 +0000 (22:02 -0400)
commit0bd454c04f02e7bb101d8ff510b54826eda4a5f0
tree2be30a10b0e7b7ddc2c653a4f8243dc7a2be7eae
parent990461dd85d57875accc798919e6fe42ab7e294d
ext4: ext4_xattr_value_same() should return false for external data

ext4_xattr_value_same() is used as a quick optimization in case the new
xattr value is identical to the previous value. When xattr value is
stored in a xattr inode the check becomes expensive so it is better to
just assume that they are not equal.

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