Message ID | cfbd290a-2804-6d4c-1efc-ff700c898ed5@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 18A3960757 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 26 Jul 2016 05:33:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BD5426223 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 26 Jul 2016 05:33:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00EC2276AE; Tue, 26 Jul 2016 05:33:52 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97EA926223 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Tue, 26 Jul 2016 05:33:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753905AbcGZFdv (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Tue, 26 Jul 2016 01:33:51 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35826 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753685AbcGZFdt (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Tue, 26 Jul 2016 01:33:49 -0400 Received: by mail-wm0-f66.google.com with SMTP id i5so19666148wmg.2 for <linux-fsdevel@vger.kernel.org>; Mon, 25 Jul 2016 22:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=1ZbF5XlNvwVhLrFeO2le6Zz32dwlrcZzwxDA6W+vcJM=; b=CbjQw4yKwsW7pOeHt7IPOU6Hi0rsKNiRwEgIMUH/b143kupXKnc8sbKdB53b5HnPg8 6eNEv30dLqvQkdmyzf4Kw7u549iFp0o1zbUMF3lZ4Fq1pw+YIyMzVyyC3kIdUWTNQMye Tn0v0yTFhwSAmG2P9iajjt4tQxEfROQMs1Pcb06Rn5tTzksLKxtGRMMFaegm38VlzA2+ CI7kaZ+a5JP2DKNhvn4CufCY1uK1fc3rKoxoE/lCiRV8Y5XY9o9N3rvR6u02ACZWUU2f /UmUVCBD91s8SbkSYDc04AIVrpoQoXOCGJTgAAHF0skykMd4rwIZbxHRslDwXEVOTdBc +0Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=1ZbF5XlNvwVhLrFeO2le6Zz32dwlrcZzwxDA6W+vcJM=; b=RBDFrx8em9pwEFqhm+W2+CYOgzFZ/trrpYgAjqww6N1aq387vBxJis50gmzrqi0sZ/ B3HayZ1X/j4ao8gloz5qwlkmclJx60d8ca6UrRsmue3SRl92zFcqQWdIu5SKSf28oadE VFzLnATcNgJcmJ56wCLZMCfQSxp3HTNxApxlZVMmqnPJ8UQXkqzum9l7mDBp2ohsT6Ac 2Ysy+5XvcLxHO6dBj05ArWFPYWOJFW5+yTz1OQtVGc8ktNEIOH/WGaTmFfaa5XhoOk8O +lnz3PyrJhNug+bSJQ+dUEwnOgbThH2VzUQUh+pGF6HrU146a82VADz667qgd0cuB1sP Ndxg== X-Gm-Message-State: AEkoouvGmbo2gZ8PxbGu7iQGO8NzjPpXvDZMstqILN3uoKswqpiuan62Ha9AxQJE3kKZXw== X-Received: by 10.28.182.84 with SMTP id g81mr5158206wmf.20.1469511227505; Mon, 25 Jul 2016 22:33:47 -0700 (PDT) Received: from ?IPv6:2003:62:5f01:4400:f15c:3bb5:5e12:3e94? (p200300625F014400F15C3BB55E123E94.dip0.t-ipconnect.de. [2003:62:5f01:4400:f15c:3bb5:5e12:3e94]) by smtp.googlemail.com with ESMTPSA id za2sm19199153wjb.34.2016.07.25.22.33.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 22:33:47 -0700 (PDT) From: Heiner Kallweit <hkallweit1@gmail.com> Subject: [PATCH 3/3] fs: super: remove unneeded dev mask To: Alexander Viro <viro@zeniv.linux.org.uk> Cc: linux-fsdevel@vger.kernel.org Message-ID: <cfbd290a-2804-6d4c-1efc-ff700c898ed5@gmail.com> Date: Tue, 26 Jul 2016 07:33:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/super.c b/fs/super.c index 37de8f5..583a541 100644 --- a/fs/super.c +++ b/fs/super.c @@ -894,7 +894,7 @@ int get_anon_bdev(dev_t *p) else if (dev < 0) return dev; - *p = MKDEV(0, dev & MINORMASK); + *p = MKDEV(0, dev); return 0; } EXPORT_SYMBOL(get_anon_bdev);
dev is always less than (1 << MINORBITS), therefore we don't need this masking. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> --- fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)