Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1672045 > unrolled thread
| Started by | Tahsin Erdogan <tahsin@google.com> |
|---|---|
| First post | 2017-06-21 23:30 +0200 |
| Last post | 2017-06-22 04:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 17/32] ext4: fix credits calculation for xattr inode Tahsin Erdogan <tahsin@google.com> - 2017-06-21 23:30 +0200
Re: [PATCH 17/32] ext4: fix credits calculation for xattr inode Theodore Ts'o <tytso@mit.edu> - 2017-06-22 04:20 +0200
| From | Tahsin Erdogan <tahsin@google.com> |
|---|---|
| Date | 2017-06-21 23:30 +0200 |
| Subject | [PATCH 17/32] ext4: fix credits calculation for xattr inode |
| Message-ID | <tUVmi-3od-19@gated-at.bofh.it> |
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>
---
fs/ext4/xattr.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 739f73a5a345..dcf7ec98f138 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -1590,8 +1590,7 @@ ext4_xattr_set(struct inode *inode, int name_index, const char *name,
if (error)
return error;
- if ((value_len >= EXT4_XATTR_MIN_LARGE_EA_SIZE(sb->s_blocksize)) &&
- ext4_has_feature_ea_inode(sb)) {
+ if (ext4_has_feature_ea_inode(sb)) {
int nrblocks = (value_len + sb->s_blocksize - 1) >>
sb->s_blocksize_bits;
--
2.13.1.611.g7e3b11ae1-goog
[toc] | [next] | [standalone]
| From | Theodore Ts'o <tytso@mit.edu> |
|---|---|
| Date | 2017-06-22 04:20 +0200 |
| Message-ID | <tUZSW-6En-5@gated-at.bofh.it> |
| In reply to | #1672045 |
On Wed, Jun 21, 2017 at 02:21:27PM -0700, Tahsin Erdogan wrote: > 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> Thanks, applied. - Ted
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web