question about striped_read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
	I met a problem and ask somebody could help me.
In func striped_read()
> if (ret > 0) {
>                int didpages = (page_align + ret) >> PAGE_CACHE_SHIFT;

>                if (read < pos - off) {
>                       dout(" zero gap %llu to %llu\n", off + read, pos);
>                        ceph_zero_page_vector_range(page_align + read,
>                                                    pos - off - read, pages);
>                }   
>                pos += ret;
>               read = pos - off;

At first , pos = off and off don't modify.
Why does it judge 'read < pos -off ' ?
Because the read = pos -off, so the read must equal pos -off.

Thansk!
Jianpeng Ma?韬{.n?????%??檩??w?{.n????u朕?Ф?塄}?财??j:+v??????2??璀??摺?囤??z夸z罐?+?????w棹f





[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux