]> git.openpandora.org Git - pandora-kernel.git/commitdiff
ceph: fix frag offset for non-leftmost frags
authorSage Weil <sage@newdream.net>
Fri, 12 Nov 2010 00:48:59 +0000 (16:48 -0800)
committerSage Weil <sage@newdream.net>
Fri, 12 Nov 2010 00:48:59 +0000 (16:48 -0800)
We start at offset 2 for the leftmost frag, and 0 for subsequent frags.
When we reach the end (rightmost), we go back to 2.  This fixes readdir on
fragmented (large) directories.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c

diff --cc fs/ceph/dir.c
Simple merge