[PATCH 2/2] btrfs: increase ctx->pos for delayed dir index

2017-08-01 Thread josef
From: Josef Bacik Our dir_context->pos is supposed to hold the next position we're supposed to look. If we successfully insert a delayed dir index we could end up with a duplicate entry because we don't increase ctx->pos after doing the dir_emit. Signed-off-by: Josef Bacik

Re: [PATCH 2/2] btrfs: increase ctx->pos for delayed dir index

2017-07-28 Thread Liu Bo
On Mon, Jul 24, 2017 at 03:14:26PM -0400, jo...@toxicpanda.com wrote: > From: Josef Bacik > > Our dir_context->pos is supposed to hold the next position we're > supposed to look. If we successfully insert a delayed dir index we > could end up with a duplicate entry because we

[PATCH 2/2] btrfs: increase ctx->pos for delayed dir index

2017-07-24 Thread josef
From: Josef Bacik Our dir_context->pos is supposed to hold the next position we're supposed to look. If we successfully insert a delayed dir index we could end up with a duplicate entry because we don't increase ctx->pos after doing the dir_emit. Signed-off-by: Josef Bacik