• Y
    ceph: fix ceph_dir_llseek() · f0494206
    Yan, Zheng 提交于
    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: NYan, Zheng <zheng.z.yan@intel.com>
    Reviewed-by: NAlex Elder <elder@linaro.org>
    f0494206
super.h 27.1 KB