Commit c2a8b6e1 authored by Chris Mason's avatar Chris Mason

Btrfs: Force f_pos to the max when a readdir hits the end of the directory.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent bea495e5
......@@ -1430,7 +1430,7 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
di = (struct btrfs_dir_item *)((char *)di + di_len);
}
}
filp->f_pos++;
filp->f_pos = INT_LIMIT(typeof(filp->f_pos));
nopos:
ret = 0;
err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment