Received: by 10.223.185.116 with SMTP id b49csp5160434wrg; Tue, 27 Feb 2018 08:42:11 -0800 (PST) X-Google-Smtp-Source: AH8x227MzucL5q+w9YyEiruaV9MgR8rLIWcDoxdNpskfdRRgSHCDDYd6/ky0gw5gm06Az4m0oFX4 X-Received: by 10.98.64.146 with SMTP id f18mr14785989pfd.30.1519749731877; Tue, 27 Feb 2018 08:42:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519749731; cv=none; d=google.com; s=arc-20160816; b=yQslTFff5Tj5zYg8um6ugvKxGDI5BF/QTEuwiY6Vy62j3D0OU38aAT6+b1W4d32xwf Sim+4unV7XrDuwrzNIA4+/wRZJvErikWl/Fl0C9IGdo99nMJVFKPoQLG8A9P5+F3r+aq +OKuwBF33oKQoA+G57h+MyLwnilVEk72oL2z+g/n+v983iIwUYxFKxvAly2CtocXWHWu of+IrJMknZhq3/cyEc8ybTYdIOfBQcvVPM1LvHHKzdkfg6OU/R+LZecRVuCh9KX5LnB9 HKWXTkf3Pj8MKE+nZVD0+a4QHcq4Z6x05rEg+EDlYQ466fR59HG2O4Tvs+xv99dCy4Ld W8wQ== 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 :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=VVCbvS/CCChwm6G3e0IlceBaAp6dyZ/v8LNWJGgiKWk=; b=JLfvcLie6Cz/DmZYFhAbufUCLcbHYSSUo1s/xsArQumy5nRr7HZVsjMU9E3a+MxXJf 0gbFZOSAPxlJEIiMnAn5I1aSevKGUTYJPPh0N9ypmth0TkFAoIOQjny2qZombXdgrcNQ ViJCAivjXKdIp1BxaPScrIMjoBc7b0hEKdMr098yqEzOos+JXruyVLBTFS3H9xHllWbm o7lUE0srezuU4ue5Zsiq3QC1Gru86Brg0qtYau5EdlCrelRas5bFkEq3+F08TGofgtbr 1Lzgkx3Z/ppDFWTWfHG+Uow0BDxnLMFQdlDkTptP6K7SNopQQD3GXdRyvoM2LLjYHRLI aCKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=fM0Rh1M1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h186si6468215pge.814.2018.02.27.08.41.56; Tue, 27 Feb 2018 08:42:11 -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=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=fM0Rh1M1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932353AbeB0P5u (ORCPT + 99 others); Tue, 27 Feb 2018 10:57:50 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:55503 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932326AbeB0P5p (ORCPT ); Tue, 27 Feb 2018 10:57:45 -0500 Received: by mail-wm0-f54.google.com with SMTP id q83so25143075wme.5 for ; Tue, 27 Feb 2018 07:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VVCbvS/CCChwm6G3e0IlceBaAp6dyZ/v8LNWJGgiKWk=; b=fM0Rh1M1YpsEJHblUB3e5TrvCt3wDkIHsOofd5MJaOYpGTsgPNfAQzxsgdaF7SF4Va jPkPGNK5WJaChgOqe6gTd1V95yipkrgqMY0mVahb4s3H1m92JflSrtWEt21o6OiMxJBd o5FYLjGAAvOisTD3dWxdplvCeaShKulKW977n1v1Twiu0IVLSsXSBleybVGeBYIL6K+4 dBGipDkCEAqSQgswtZD85BM6E/XVK02Kw6RfbHytApt7sP9MKtP597uW83Q9gZ6e0kdV rJ5zsQNp5a2bLGh6LOHxgi5kM3V5FkkBgCkYNK5zHRxg+Mmb6fIljKynnxX8oibfBfix NmEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VVCbvS/CCChwm6G3e0IlceBaAp6dyZ/v8LNWJGgiKWk=; b=iJlEGqUTE8SyJNURZLtG1jL6PJUP4sFc2LknNIjwDGPi/aBSFLUnw74UhX5fcomUJ/ McfsGELzAdMjIt9e7y3dycF7HU3UF9wXcrO3GPJ7IZj5jpoJf7BEGQQJRzYt9a7BOdtW 5TWbd2Frtx0Y8hIeVJR7h8WEebfNQRDeQBNA7PdaCRjgsMeznkTRiEqvmho14gTMoa24 YTdPjE5zdBSEZbWZ6UpS+lWT9uXIft+EN5ObxxzdYgSDYR4JxZ5nkXDHaRQ3dG+EDGzq ZpKLwzro9NYafMP7DR+0woV8MaZbSbAKeIyrBgVAhxSyp3oNz3+HZwfh4y4khw18vHq+ 3aKw== X-Gm-Message-State: APf1xPDG1hhvRe+RRjhPNiOk1Uffnw3OICASxgaerMk/M0YgRJQs+0+g J3ya3k5S6RNx/zJpmABwWM/KDg== X-Received: by 10.80.241.25 with SMTP id w25mr19512426edl.62.1519747064204; Tue, 27 Feb 2018 07:57:44 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id q6sm9868481edb.60.2018.02.27.07.57.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 07:57:43 -0800 (PST) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH V4] lightnvm: simplify geometry structure Date: Tue, 27 Feb 2018 16:57:11 +0100 Message-Id: <1519747032-25704-1-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sending this separately as it seems to be the controversial one. # Changes since V3 From Matias: - Remove nvm_common_geo - Do appropriate renames when having a single geometry for device and targets Javier Javier González (1): lightnvm: simplify geometry structure. drivers/lightnvm/core.c | 114 +++++-------- drivers/lightnvm/pblk-core.c | 16 +- drivers/lightnvm/pblk-gc.c | 2 +- drivers/lightnvm/pblk-init.c | 123 +++++++------- drivers/lightnvm/pblk-read.c | 2 +- drivers/lightnvm/pblk-recovery.c | 14 +- drivers/lightnvm/pblk-rl.c | 2 +- drivers/lightnvm/pblk-sysfs.c | 39 +++-- drivers/lightnvm/pblk-write.c | 2 +- drivers/lightnvm/pblk.h | 93 +++++------ drivers/nvme/host/lightnvm.c | 344 +++++++++++++++++++++++---------------- include/linux/lightnvm.h | 202 ++++++++++++----------- 12 files changed, 501 insertions(+), 452 deletions(-) -- 2.7.4