<p><br>
On Mar 14, 2014 9:26 PM, "朱" <<a href="mailto:zly.king@163.com">zly.king@163.com</a>> wrote:<br>
><br>
> hi,<br>
> I add a u64 field in struct page to record corresponding disk sector postion. I will change and read this field when dealing with page cache staff.</p>
<p>As you already have modified page struct, how about modifying prep_new_page as well. Put a zero in that field after the page refcount is set.<br></p>
<p>I think that way it'll remain.hidden instead of your specific code zeroing it everytime you need it.</p>
<p>> I want it stays zero unless my code change its value. Will the kernel 's allocating code guarantee that<br>
> the field is zero when the page is allocated? or Need I add some code to the allocating routine to explicitly fill the field with zero?<br>
><br>
> Regard,<br>
> Lingyu Zhu<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
</p>