summaryrefslogtreecommitdiffstats
path: root/lib/libcrc32c.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-05-02 00:49:54 -0400
committerTheodore Ts'o <tytso@mit.edu>2017-05-02 00:49:54 -0400
commitaa1dca3bd96bfd0ddf6871fc1844bd12ccce50f1 (patch)
tree2ea2c003ce1e5b5b82e837c987541a44246b36bd /lib/libcrc32c.c
parent72d622b42258a0ed0b6e8c0f40d7628de935d058 (diff)
downloadlinux-aa1dca3bd96bfd0ddf6871fc1844bd12ccce50f1.tar.bz2
ext4: inherit encryption xattr before other xattrs
When using both encryption and SELinux (or another feature that requires an xattr per file) on a filesystem with 256-byte inodes, each file's xattrs usually spill into an external xattr block. Currently, the xattrs are inherited in the order ACL, security, then encryption. Therefore, if spillage occurs, the encryption xattr will always end up in the external block. This is not ideal because the encryption xattrs contain a nonce, so they will always be unique and will prevent the external xattr blocks from being deduplicated. To improve the situation, change the inheritance order to encryption, ACL, then security. This gives the encryption xattr a better chance to be stored in-inode, allowing the other xattr(s) to be deduplicated. Note that it may be better for userspace to format the filesystem with 512-byte inodes in this case. However, it's not the default. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/libcrc32c.c')
0 files changed, 0 insertions, 0 deletions