ext4: fix ext4_xattr_make_inode_space() value size calculation
authorTahsin Erdogan <tahsin@google.com>
Thu, 22 Jun 2017 02:05:44 +0000 (22:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 02:05:44 +0000 (22:05 -0400)
commit9bb21cedda7cd69789e1f93d7d918f5ca48ba165
tree8b5023991731f6c1014543093a3dc7a983affd59
parent0bd454c04f02e7bb101d8ff510b54826eda4a5f0
ext4: fix ext4_xattr_make_inode_space() value size calculation

ext4_xattr_make_inode_space() is interested in calculating the inline
space used in an inode. When a xattr entry refers to an external inode
the value size indicates the external inode size, not the value size in
the inline area. Change the function to take this into account.

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