]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: fix credits calculation for xattr inode
authorTahsin Erdogan <tahsin@google.com>
Thu, 22 Jun 2017 02:16:20 +0000 (22:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Jun 2017 02:16:20 +0000 (22:16 -0400)
commitb3155298910c64a312620309f320d26e9461eb19
treef2c87dc74547f0ddc91416239f482353c93dfe1a
parent7cec191894e4e2200d942415c3ebccb146214d26
ext4: fix credits calculation for xattr inode

When there is no space for a value in xattr block, it may be stored
in an xattr inode even if the value length is less than
EXT4_XATTR_MIN_LARGE_EA_SIZE(). So the current assumption in credits
calculation is wrong.

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