diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 5462f26907c1..88c90c2f75b0 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -1581,9 +1581,12 @@ static int ext4_xattr_set_entry(struct ext4_xattr_info *i, goto update_hash; } +printk("In ext4_xattr_set_entry s %lx, last = %lx, name len %d\n", s, s->first, EXT4_XATTR_LEN((s->first)->e_name_len)); /* Compute min_offs and last. */ last = s->first; + for (; !IS_LAST_ENTRY(last); last = next) { +printk("In next ext4_xattr_set_entry s %lx, name len %d", last, EXT4_XATTR_LEN((last)->e_name_len)); next = EXT4_XATTR_NEXT(last); if ((void *)next >= s->end) { EXT4_ERROR_INODE(inode, "corrupted xattr entries");