public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* which dentry a page belongs to
@ 2004-04-23 14:57 Shaya Potter
  2004-04-23 15:14 ` Jamie Lokier
  0 siblings, 1 reply; 22+ messages in thread
From: Shaya Potter @ 2004-04-23 14:57 UTC (permalink / raw)
  To: linux-fsdevel

I'm trying to do something funky w/ dentry's in a filesystem's
writepage() function.

I know it's easy to figure out which inode a page belongs to as the
address_space structure is tied to it which points to the inode.  

page->mapping->host

and it seems one should be able to figure out which vm_area_struct that
the page belongs to, and from there figure out the correct dentry, but
I'm unsure if this is easy or should work.  It would seem that since the
address_space object contains the vm_area_struct's of i_mmap and
i_mmap_shared I should then be able to get the appropriate file and
dentry object's through

page->mapping->i_mmap->vm_file->f_dentry

or

page->mapping->i_mmap_shared->vm_file->f_dentry

1) Is this correct logic?  I'm assuming the only things that matters in
choosing which list is used if the page is map'd shared or not? is that
correct as well?

thanks,

shaya


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

end of thread, other threads:[~2004-04-25 23:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23 14:57 which dentry a page belongs to Shaya Potter
2004-04-23 15:14 ` Jamie Lokier
2004-04-23 15:42   ` Shaya Potter
2004-04-23 16:37     ` Christoph Hellwig
2004-04-23 16:52       ` Shaya Potter
2004-04-23 17:01         ` Christoph Hellwig
2004-04-23 17:18           ` Shaya Potter
2004-04-23 17:22             ` Christoph Hellwig
2004-04-23 17:32               ` Shaya Potter
2004-04-23 17:37             ` Jamie Lokier
2004-04-23 17:59               ` Shaya Potter
2004-04-23 22:13                 ` Jamie Lokier
2004-04-23 18:05               ` Shaya Potter
2004-04-23 21:37                 ` Jamie Lokier
2004-04-23 22:26                   ` Shaya Potter
2004-04-23 22:49                     ` Jamie Lokier
2004-04-25  5:23                       ` Shaya Potter
2004-04-25 23:22                         ` Erez Zadok
2004-04-24  8:53           ` Jan Hudec
2004-04-24  8:44       ` Jan Hudec
2004-04-24  9:20         ` Christoph Hellwig
2004-04-24  9:32           ` Jan Hudec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox