ext4: ignore e_value_offs for xattrs with value-in-ea-inode
[linux-2.6-microblaze.git] / fs / ext4 / xattr.c
index dc82e77..491f9ee 100644 (file)
@@ -1696,7 +1696,7 @@ static int ext4_xattr_set_entry(struct ext4_xattr_info *i,
 
        /* No failures allowed past this point. */
 
-       if (!s->not_found && here->e_value_size && here->e_value_offs) {
+       if (!s->not_found && here->e_value_size && !here->e_value_inum) {
                /* Remove the old value. */
                void *first_val = s->base + min_offs;
                size_t offs = le16_to_cpu(here->e_value_offs);