From: Yan, Zheng Date: Thu, 27 Feb 2014 08:26:24 +0000 (+0800) Subject: ceph: fix ceph_dir_llseek() X-Git-Tag: v3.15-rc1~61^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0494206076703aaa0c8005eff41c413216ae26b;p=pandora-kernel.git ceph: fix ceph_dir_llseek() Comparing offset with inode->i_sb->s_maxbytes doesn't make sense for directory. For a fragmented directory, offset (frag_t, off) can be larger than inode->i_sb->s_maxbytes. At the very beginning of ceph_dir_llseek(), local variable old_offset is initialized to parameter offset. This doesn't make sense neither. Old_offset should be ceph_make_fpos(fi->frag, fi->next_offset). Signed-off-by: Yan, Zheng Reviewed-by: Alex Elder --- Reading git-diff-tree failed