read_cache_page & permission denied.

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

 




Hi all,

To prefetch a page into the page cache, we do something 
like:

    struct inode* inode = iget(sb,inode_nr);

    struct page* page = read_cache_page(..);
          .
          . <== various error checking same as ext2_get_page
          .
    iput(inode);

The code "works" (there's no oops or anything). 
Now if we try compiling the kernel with prefetching on, it
gives:

stat: Makefile : permission denied

This does not happen without prefetching. It seems that some
inode or page is locked, so it cannot be accessed. Does the
page has to be unlocked or something after reading it ?

Thanks in advance.
Swapnil.



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux