All of lore.kernel.org
 help / color / mirror / Atom feed
* Why is NFS using a_ops->freepage?
@ 2017-10-05  8:36 ` Jan Kara
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Kara @ 2017-10-05  8:36 UTC (permalink / raw)
  To: linux-nfs, linux-mm; +Cc: Trond Myklebust, Anna Schumaker

Hello,

I'm doing some work in page cache handling and I have noticed that NFS is
the only user of mapping->a_ops->freepage callback. From a quick look I
don't see why isn't NFS using ->releasepage / ->invalidatepage callback as
all other filesystems do? I agree you would have to set PagePrivate bit for
those to get called for the directory mapping however that would seem like
a cleaner thing to do anyway - in fact you do have private data in the
page.  Just they are not pointed to by page->private but instead are stored
as page data... Am I missing something?

								Honza
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

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

end of thread, other threads:[~2017-10-05 14:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-05  8:36 Why is NFS using a_ops->freepage? Jan Kara
2017-10-05  8:36 ` Jan Kara
2017-10-05 13:39 ` Trond Myklebust
2017-10-05 13:39   ` Trond Myklebust
2017-10-05 14:50   ` Jan Kara
2017-10-05 14:50     ` Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.