Message ID | 1532626360-16650-3-git-send-email-rppt@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 17BA7174A for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 26 Jul 2018 17:33:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 091B02AB8B for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 26 Jul 2018 17:33:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F10D42B073; Thu, 26 Jul 2018 17:33:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94F1F2AB8B for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 26 Jul 2018 17:33:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 639786B026B; Thu, 26 Jul 2018 13:33:00 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 60FA16B026D; Thu, 26 Jul 2018 13:33:00 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52F486B026E; Thu, 26 Jul 2018 13:33:00 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by kanga.kvack.org (Postfix) with ESMTP id EA8DC6B026B for <linux-mm@kvack.org>; Thu, 26 Jul 2018 13:32:59 -0400 (EDT) Received: by mail-ed1-f72.google.com with SMTP id o60-v6so1130104edd.13 for <linux-mm@kvack.org>; Thu, 26 Jul 2018 10:32:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=tsgWAzD/V/iTM9XVrNLk/H44DkI8oDZBWthlaIbs3ZI=; b=tGu1eY9qygRkdkextWSSB0/0t8TH4vKXQugwwrC+5MxhirHnSfd1KQAWuTOhf1JCPs g40hoxxAqnIgzPFXOl5VjLk0Wj7Lwvl0YykfgFAh1W+/XdUOhu3gTNYqkrY5RmKpKD0a C0ns8XWSUEDWWjgN6MHFNZnnn6/8qvloGkgGbn7YYOEPY6vyQBw/PzJyFM0GDqmH9yTE wm87t2+ZyIInxChSiD2/g28Dw5UJrD747LB6Nsy0nWxTPvKdHnS+OaYmmf5AKgJjv5B/ ta6c+MKOZsw+XHjmx7J0ca/C43SLI1k0D4Vb2DUOPgQQ9MJxZ6xU+L1581iP93+Gt53t DTQA== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: AOUpUlFTb8gBMBFlaswrHR1jgbe1C1RDO+xAcS9F2N0PnQP7Os+SAOT0 roUF+DHXJT0Qt3Krbv8uHe8ivURAB71rOZ595Zao7BiS0R8I093e/NdzUfwYZY6lhJ/8m6dqPUT bJZeA0tHJJJ8mHQiIlXifTVAznMZRQ/aSFSU82Y3lKlYvxkiqwhdDZ2XKkuR1QoE= X-Received: by 2002:aa7:c88f:: with SMTP id p15-v6mr3744218eds.242.1532626379526; Thu, 26 Jul 2018 10:32:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdUTqJkq9P1boMKD/bMuPE+sQOStJP6Zp9INwie2XJNznvZ3YWE2OEuo7Tf7H0mroOjTDiF X-Received: by 2002:aa7:c88f:: with SMTP id p15-v6mr3744185eds.242.1532626378967; Thu, 26 Jul 2018 10:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532626378; cv=none; d=google.com; s=arc-20160816; b=wMVuoASLV0Mhest2tl9peNC52ghcUGuA5UmSP4BgozTpUOUu9g2FB4MtFUbNUfpEAd DywGDcRMTsLXGggcU3Xq8WFK37p+3K8Lj0b/JalxST+4qMtjlz/uwWlXrZ2rnK36HZ4M mwOjWaWJFyHFkR8ob4Ky9xv7JUkh4d9/4cedCIloDa0kjlaTj6Nt51rS3/AvEr9YvHaq E6s/4f/NHFGj/Z9u5tnVZKaUMvDkwvvfW9SZOIdoVRQodCSPev9ITl0nolBsxAwzHXS7 /LxHbVAu1wt++XMA7hfxWIwFyZKkSYlhULKm5a4N8i/s0sPTN+S8XPY+f7l78zJCDfiB +qvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=tsgWAzD/V/iTM9XVrNLk/H44DkI8oDZBWthlaIbs3ZI=; b=YxrwNIqaMNSK+Qk3+EUpmlmqLEq35wlUqaAzIECpj+twsB+B/vxeQj2aJCgBVMTrCi xM5K+515KwYsxEQ2I669so3kdV7T0Cuqo5JdKveWGi70a5Lt+k6jIe+LAjYSkYvQHmgO AgsrZi/w8IuUgsST1I2VdkeKmK6fUErtpjTy2Ry5ryF8FvFqT3bICOaJVCdhF9w5buaJ MsQYmQtD/jgjrqXSbiT4DbYltfmATFF3bjRqavMqzpNghh/l2lLEV4E3/5vtnN5/Yme7 Z1+cacHPgeUd7X9T5VdAay2jiMinCGu+QdkER2U0nAvSkxQwD/RGgreEedOM4op41rG9 QEbA== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id 7-v6si1849011edv.293.2018.07.26.10.32.58 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 10:32:58 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6QHSqnm113721 for <linux-mm@kvack.org>; Thu, 26 Jul 2018 13:32:57 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kfg297uu2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for <linux-mm@kvack.org>; Thu, 26 Jul 2018 13:32:57 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <linux-mm@kvack.org> from <rppt@linux.vnet.ibm.com>; Thu, 26 Jul 2018 18:32:53 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 26 Jul 2018 18:32:50 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6QHWneA39059658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Jul 2018 17:32:49 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A8BBB42045; Thu, 26 Jul 2018 20:33:03 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C450F42049; Thu, 26 Jul 2018 20:33:01 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.204.214]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 26 Jul 2018 20:33:01 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Thu, 26 Jul 2018 20:32:46 +0300 From: Mike Rapoport <rppt@linux.vnet.ibm.com> To: Jonathan Corbet <corbet@lwn.net>, Andrew Morton <akpm@linux-foundation.org> Cc: Matthew Wilcox <willy@infradead.org>, Michal Hocko <mhocko@kernel.org>, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport <rppt@linux.vnet.ibm.com> Subject: [PATCH v3 2/7] mm/util: add kernel-doc for kvfree Date: Thu, 26 Jul 2018 20:32:35 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532626360-16650-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1532626360-16650-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18072617-0028-0000-0000-000002E0AD27 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072617-0029-0000-0000-00002398A0A9 Message-Id: <1532626360-16650-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-26_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=828 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807260180 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
memory management documentation updates
|
expand
|
diff --git a/mm/util.c b/mm/util.c index 6809014..d2890a4 100644 --- a/mm/util.c +++ b/mm/util.c @@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node) } EXPORT_SYMBOL(kvmalloc_node); +/** + * kvfree - free memory allocated with kvmalloc + * @addr: pointer returned by kvmalloc + * + * If the memory is allocated from vmalloc area it is freed with vfree(). + * Otherwise kfree() is used. + */ void kvfree(const void *addr) { if (is_vmalloc_addr(addr))
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> --- mm/util.c | 7 +++++++ 1 file changed, 7 insertions(+)