+ mm-rip-put_page_unless_one-as-it-has-no-callers.patch added to -mm tree

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

 



The patch titled
     Subject: mm: remove put_page_unless_one()
has been added to the -mm tree.  Its filename is
     mm-rip-put_page_unless_one-as-it-has-no-callers.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-rip-put_page_unless_one-as-it-has-no-callers.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-rip-put_page_unless_one-as-it-has-no-callers.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Vineet Gupta <Vineet.Gupta1@xxxxxxxxxxxx>
Subject: mm: remove put_page_unless_one()

It has no callers.

Signed-off-by: Vineet Gupta <vgupta@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/mm.h |   12 ------------
 1 file changed, 12 deletions(-)

diff -puN include/linux/mm.h~mm-rip-put_page_unless_one-as-it-has-no-callers include/linux/mm.h
--- a/include/linux/mm.h~mm-rip-put_page_unless_one-as-it-has-no-callers
+++ a/include/linux/mm.h
@@ -362,18 +362,6 @@ static inline int get_page_unless_zero(s
 	return atomic_inc_not_zero(&page->_count);
 }
 
-/*
- * Try to drop a ref unless the page has a refcount of one, return false if
- * that is the case.
- * This is to make sure that the refcount won't become zero after this drop.
- * This can be called when MMU is off so it must not access
- * any of the virtual mappings.
- */
-static inline int put_page_unless_one(struct page *page)
-{
-	return atomic_add_unless(&page->_count, -1, 1);
-}
-
 extern int page_is_ram(unsigned long pfn);
 extern int region_is_ram(resource_size_t phys_addr, unsigned long size);
 
_

Patches currently in -mm which might be from Vineet.Gupta1@xxxxxxxxxxxx are

mm-rip-put_page_unless_one-as-it-has-no-callers.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux