public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* return value of ptep_get_and_clear
@ 2005-04-06 16:38 Kumar Gala
  2005-04-06 16:48 ` Nick Piggin
  2005-04-06 17:09 ` Brian Gerst
  0 siblings, 2 replies; 5+ messages in thread
From: Kumar Gala @ 2005-04-06 16:38 UTC (permalink / raw)
  To: LKML list

ptep_get_and_clear has a signature that looks something like:

static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned 
long addr,
                                        pte_t *ptep)

It appears that its suppose to return the pte_t pointed to by ptep 
before its modified.  Why do we bother doing this?  The caller seems 
perfectly able to dereference ptep and hold on to it.  Am I missing 
something here?

If not, I'll work up a set of patches to change ptep_get_and_clear and 
its callers for post 2.6.12 release.

- kumar


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

end of thread, other threads:[~2005-04-06 17:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-06 16:38 return value of ptep_get_and_clear Kumar Gala
2005-04-06 16:48 ` Nick Piggin
2005-04-06 17:09   ` Christoph Lameter
2005-04-06 17:55     ` Kumar Gala
2005-04-06 17:09 ` Brian Gerst

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