diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 5462f26907c1..9c42bd662d88 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -1581,8 +1581,10 @@ static int ext4_xattr_set_entry(struct ext4_xattr_info *i, goto update_hash; } +printk("In ext4_xattr_set_entry s %lx, last = %lx\n", s, s->first); /* Compute min_offs and last. */ last = s->first; + for (; !IS_LAST_ENTRY(last); last = next) { next = EXT4_XATTR_NEXT(last); if ((void *)next >= s->end) {