aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/xattr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
index 0263692979ec..72377b77fbd7 100644
--- a/fs/ext4/xattr.c
+++ b/fs/ext4/xattr.c
@@ -2657,6 +2657,11 @@ static int ext4_xattr_make_inode_space(handle_t *handle, struct inode *inode,
2657 last = IFIRST(header); 2657 last = IFIRST(header);
2658 /* Find the entry best suited to be pushed into EA block */ 2658 /* Find the entry best suited to be pushed into EA block */
2659 for (; !IS_LAST_ENTRY(last); last = EXT4_XATTR_NEXT(last)) { 2659 for (; !IS_LAST_ENTRY(last); last = EXT4_XATTR_NEXT(last)) {
2660 /* never move system.data out of the inode */
2661 if ((last->e_name_len == 4) &&
2662 (last->e_name_index == EXT4_XATTR_INDEX_SYSTEM) &&
2663 !memcmp(last->e_name, "data", 4))
2664 continue;
2660 total_size = EXT4_XATTR_LEN(last->e_name_len); 2665 total_size = EXT4_XATTR_LEN(last->e_name_len);
2661 if (!last->e_value_inum) 2666 if (!last->e_value_inum)
2662 total_size += EXT4_XATTR_SIZE( 2667 total_size += EXT4_XATTR_SIZE(