btrfs: fix missing last-entry in readdir(3)
authorJan Engelhardt <jengelh@medozas.de>
Wed, 9 Dec 2009 22:00:38 +0000 (22:00 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 18 Jan 2010 01:06:27 +0000 (20:06 -0500)
commit406266ab9ac8ed8b085c58aacd9e3161480dc5d5
tree811d305c4c4fdf6b19279173959d06698a304416
parent3a1abec9f6880cf406593c392636199ea1c6c917
btrfs: fix missing last-entry in readdir(3)

parent 49313cdac7b34c9f7ecbb1780cfc648b1c082cd7 (v2.6.32-1-g49313cd)
commit ff48c08e1c05c67e8348ab6f8a24de8034e0e34d
Author: Jan Engelhardt <jengelh@medozas.de>
Date:   Wed Dec 9 22:57:36 2009 +0100

Btrfs: fix missing last-entry in readdir(3)

When one does a 32-bit readdir(3), the last entry of a directory is
missing. This is however not due to passing a large value to filldir,
but it seems to have to do with glibc doing telldir or something
quirky. In any case, this patch fixes it in practice.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c