]> git.karo-electronics.de Git - karo-tx-linux.git/commit
btrfs: fix missing last-entry in readdir(3)
authorJan Engelhardt <jengelh@medozas.de>
Wed, 9 Dec 2009 22:00:38 +0000 (22:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:01 +0000 (13:20 -0700)
commit77033193e0499bdafc35be3035ab2bd361d75052
treea4e196d3258b953e6bb55681899c14277ac776a7
parent88a9a7cf4ca9e83187b395aabda95f17a6407ad6
btrfs: fix missing last-entry in readdir(3)

commit 406266ab9ac8ed8b085c58aacd9e3161480dc5d5 upstream.

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>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/inode.c