[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
kmap!
Hi ,
The readpage of all Filesystem has got code like
if (inode->i_size <= ((obd_off)page->index) <<
PAGE_SHIFT) {
CERROR("reading beyond EOF\n");
memset(kmap(page), 0, PAGE_SIZE);
kunmap(page);
SetPageUptodate(page);
GOTO(out, rc = 0);
}
Please somebody give me reason why this kmap when we
have to kunmap it in next line.
Thanks
Prasanna
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/