How to find the inode of the file, a buffer/block belongs to?
From: Vineet Joglekar (vinzip_at_indiatimes.com)
Date: 06/10/04
- Previous message: Kasper Dupont: "Re: Using /proc/mtrr to disable caching memory?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Jun 2004 14:06:58 -0700
Hi all,
There is a parameter "b_inode" in the struct "buffer_head", which I
was under the impression; points to the inode of the file, that
buffer/block belongs to. But when I print it, it just shows "0" Can
anyone please tell me whats the significance of this parameter? and
how to find which file that buffer / block belongs to?
Also, I am under the impression that a buffer (in normal conditions)
can be allocated to just 1 file at a time while in a page, different
buffers in that same page can be allocated to different files. please
correct me if I am wrong.
Thanks and regards,
Vineet
p.s. I am trying to print this "b_inode" in a function
"do_generic_file_read" in the file /mm/filemap.c
- Previous message: Kasper Dupont: "Re: Using /proc/mtrr to disable caching memory?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|