btrfs: increase ctx->pos for delayed dir index
authorJosef Bacik <[email protected]>
Mon, 24 Jul 2017 19:14:26 +0000 (15:14 -0400)
committerDavid Sterba <[email protected]>
Fri, 18 Aug 2017 14:36:20 +0000 (16:36 +0200)
commit42e9cc46fbe86f83278c14f5d88f353d037258d2
treea88c28f8b83f4f0b2eef1281047b33c43310c676
parent23b5ec74943f44378b68c0edd8e210a86318ea5e
btrfs: increase ctx->pos for delayed dir index

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 <[email protected]>
Reviewed-by: Liu Bo <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/delayed-inode.c