Btrfs: Check if btrfs_next_leaf() returns error in btrfs_real_readdir()
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 23 Mar 2011 02:43:58 +0000 (10:43 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 13 Apr 2011 06:25:31 +0000 (14:25 +0800)
commitb9e03af0bcc11310f6be4a3951c9ee2c26465011
treef7a89518879e38ae460f6b3c2e6cc9a32c7243bc
parent2e6a00356a066d34cd00872b067589549169ad48
Btrfs: Check if btrfs_next_leaf() returns error in btrfs_real_readdir()

btrfs_next_leaf() can return -errno, and we should propagate
it to userspace.

This also simplifies how we walk the btree path.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/inode.c