Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp996005imu; Fri, 11 Jan 2019 12:58:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ECQSacY7tpGwzovUtLTd09eLicHAhdL3rKm4Such93ver8HmkwJfp0Bg25DrwG4qz1MJH X-Received: by 2002:a63:f34b:: with SMTP id t11mr14804181pgj.341.1547240283988; Fri, 11 Jan 2019 12:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547240283; cv=none; d=google.com; s=arc-20160816; b=xREg2g3s5sxrIf2DnfwIMJ3cNQfkt1rVYDn/SqGtA8igFNWzihbhYgppN4AwG3eBht fBc84KeB6+/2SB4t6xGFj9qrDc6d5XSQPC+nabhny/OXR50WP4m19jRKl5tkxWdblmtX d5p1TGYydiNQEnqlzmc0Cqvr0BHKpiHWDk7EDgDC6S3/eiWPtrSVgkj7kO5mhpt59uNh NW12sQxd1VgQuIpMymyMAKaAqnD/QpAPDcWSAuhFFoIbkyX3/t75dkLqh89VjWbWO11t dfVU+dcGpKh6rr0qqy2fe+SQywwRql6dVaCMHWBY9TFdlndzANTK7Gdw5/5Qm8LXSouc MNBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1D2MlCtLYhIPabsQzdGn3gtPwyGFeW2PytvSRMYIQ9w=; b=NQXtdabJVL16nSKnhZE5uapVPPoZC1xq24kTfM9A+sFOYMPiGPBAa8Lgs0yRdPXgcM MCsAZ6FxIJWzZlmABQNbI9kGI42LiZXuZXh7Rgb1sS3JPKb/G05Qd2YZxgiL3F0Av69k UAWip4LY3C9kK0SLLZWxdByDotgrzF2FeCLD6HJbUuso/shycxNijLbkH+JsWSCI5jJR xFxk/ehsrUA2XgUobdvlUe4YHWtfagEQSNhLsJrBWfVlbf1hN1CSVU9EvGGerTzTKGTJ pYvi5MvtZwT03k+mXHi7jTulBLAEdEBUNcJCIB7Wd4azgiKUvP/s9LAksSCuAe45iVT8 lrfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kNRJgLwb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si2810159pfb.237.2019.01.11.12.57.48; Fri, 11 Jan 2019 12:58:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kNRJgLwb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733274AbfAKSFk (ORCPT + 99 others); Fri, 11 Jan 2019 13:05:40 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:41920 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733134AbfAKSFh (ORCPT ); Fri, 11 Jan 2019 13:05:37 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0BI5VVT058867; Fri, 11 Jan 2019 12:05:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547229931; bh=1D2MlCtLYhIPabsQzdGn3gtPwyGFeW2PytvSRMYIQ9w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kNRJgLwbjRni2CZ3gCou7R0Yk5geJYage2bBNyigAIx+EveLekbI3lSi/mr22qv3s 6kyPlzAvUNEQekidVlEqHreWJttQe1CzX+Ggu87BzvxwYzMUYTF9OS76Ch1CVfurs/ HvIenrrwwGD3XgZJ5DQAlWsqi7BhpAvTnwRUvdxA= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0BI5V2x009026 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Jan 2019 12:05:31 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 11 Jan 2019 12:05:30 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 11 Jan 2019 12:05:30 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0BI5Ufp025779; Fri, 11 Jan 2019 12:05:30 -0600 Received: from localhost (uda0226330.dhcp.ti.com [172.22.109.196]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x0BI5UU07734; Fri, 11 Jan 2019 12:05:30 -0600 (CST) From: "Andrew F. Davis" To: Laura Abbott , Sumit Semwal , Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= CC: , , , "Andrew F . Davis" Subject: [PATCH 07/14] staging: android: ion: Sync comment docs with struct ion_buffer Date: Fri, 11 Jan 2019 12:05:16 -0600 Message-ID: <20190111180523.27862-8-afd@ti.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190111180523.27862-1-afd@ti.com> References: <20190111180523.27862-1-afd@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This struct is no longer documented correctly, fix this. Signed-off-by: Andrew F. Davis --- drivers/staging/android/ion/ion.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/ion/ion.h b/drivers/staging/android/ion/ion.h index 2ef78c951a6b..e291299fd35f 100644 --- a/drivers/staging/android/ion/ion.h +++ b/drivers/staging/android/ion/ion.h @@ -23,8 +23,8 @@ /** * struct ion_buffer - metadata for a particular buffer - * @ref: reference count * @node: node in the ion_device buffers tree + * @list: element in list of deferred freeable buffers * @dev: back pointer to the ion_device * @heap: back pointer to the heap the buffer came from * @flags: buffer specific flags @@ -35,7 +35,8 @@ * @lock: protects the buffers cnt fields * @kmap_cnt: number of times the buffer is mapped to the kernel * @vaddr: the kernel mapping if kmap_cnt is not zero - * @sg_table: the sg table for the buffer if dmap_cnt is not zero + * @sg_table: the sg table for the buffer + * @attachments: list of devices attached to this buffer */ struct ion_buffer { union { @@ -151,12 +152,16 @@ struct ion_heap { unsigned long flags; unsigned int id; const char *name; + + /* deferred free support */ struct shrinker shrinker; struct list_head free_list; size_t free_list_size; spinlock_t free_lock; wait_queue_head_t waitqueue; struct task_struct *task; + + /* heap statistics */ u64 num_of_buffers; u64 num_of_alloc_bytes; u64 alloc_bytes_wm; -- 2.19.1