All of lore.kernel.org
 help / color / mirror / Atom feed
* question about  striped_read
@ 2013-07-25  0:52 majianpeng
  2013-07-25  5:54 ` Sage Weil
  0 siblings, 1 reply; 33+ messages in thread
From: majianpeng @ 2013-07-25  0:52 UTC (permalink / raw)
  To: ceph-devel

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

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2013-08-01  7:19 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25  0:52 question about striped_read majianpeng
2013-07-25  5:54 ` Sage Weil
2013-07-25  6:55   ` majianpeng
2013-07-25 12:27     ` Yan, Zheng
2013-07-25 15:50       ` Sage Weil
2013-07-26  0:48         ` majianpeng
2013-07-26  1:14           ` Yan, Zheng
2013-07-26  1:22             ` majianpeng
2013-07-26  1:36               ` Yan, Zheng
2013-07-26  1:38                 ` majianpeng
2013-07-26  1:59                   ` Yan, Zheng
2013-07-26  2:07                     ` majianpeng
     [not found]                       ` <CAAM7YAkNQA5PqVr15CXRQ5xPLk42VCCb3kf3U8ic9f6n3d9SGg@mail.gmail.com>
2013-07-29  3:00                         ` majianpeng
2013-07-29  5:02                           ` Yan, Zheng
2013-07-30  2:08                             ` majianpeng
2013-07-30  2:56                               ` Yan, Zheng
2013-07-30 11:01                             ` majianpeng
2013-07-30 11:14                               ` Yan, Zheng
2013-07-30 11:20                                 ` majianpeng
2013-07-30 11:41                                 ` majianpeng
2013-07-30 12:25                                   ` Yan, Zheng
2013-07-31  0:27                                     ` majianpeng
2013-07-31  0:40                                       ` Sage Weil
2013-07-31  0:44                                         ` majianpeng
2013-07-31  0:47                                           ` Sage Weil
2013-07-31  1:36                                             ` majianpeng
     [not found]                                               ` <CAAM7YAnGaXcQm1LcaCUGL71FGRV5zfNx1iRObFkvXsyVpu91Ag@mail.gmail.com>
2013-07-31  5:46                                                 ` majianpeng
     [not found]                                                   ` <CAAM7YAmv6Ar_oTdYG31YSHnQwyUUYSNq3Zj_4fHcwMoOvno7Sw@mail.gmail.com>
2013-07-31  7:32                                                     ` majianpeng
2013-07-31  8:26                                                       ` Yan, Zheng
2013-08-01  1:45                                                         ` majianpeng
2013-08-01  3:29                                                           ` Yan, Zheng
2013-08-01  6:30                                                             ` majianpeng
2013-08-01  7:19                                                               ` Yan, Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.