From patchwork Tue Jan 7 20:53:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 234261 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83C0EC282DD for ; Tue, 7 Jan 2020 21:25:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5455C222D9 for ; Tue, 7 Jan 2020 21:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578432355; bh=S4gT98fNZToNWWvwEhgB78y4k0uhF3XFVxP70zJy0gU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=qfjE82VJSPMpSgFobMKV3y0eF5SNbLUDToB4i0+XOC9s/rZ4gPveg1M4q8y1PdTF8 hXhvJ8byyiYuHzbNZFvUAekhmxIHE7KRQlIKkqmUtmtHrQGer3LRvqjgZ6LEWQYKxw fyUqsVHzxudlPGqLnH0pXB3NPpQEl5E9s1XOJEVw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727080AbgAGVZv (ORCPT ); Tue, 7 Jan 2020 16:25:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:60998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbgAGU7g (ORCPT ); Tue, 7 Jan 2020 15:59:36 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6AC542081E; Tue, 7 Jan 2020 20:59:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578430775; bh=S4gT98fNZToNWWvwEhgB78y4k0uhF3XFVxP70zJy0gU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NnyJDDq9E9lIbaJSke6FYgwPVpHctmTplFV/WKwyCbWlbEFcbfkrjC+0QqUs9c3oj NdE2Sp0irdjYqjivaKsv+Iu3Qu+zGq9dmIpxtob4YXSu0Uys1+tWv08zVCm7lU1nnz dT0kRUG3NIXGnvgGiP/oUPXagxTdRZJlmLeKe1Ug= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Amir Goldstein , Jeff Layton Subject: [PATCH 5.4 092/191] locks: print unsigned ino in /proc/locks Date: Tue, 7 Jan 2020 21:53:32 +0100 Message-Id: <20200107205337.919473322@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200107205332.984228665@linuxfoundation.org> References: <20200107205332.984228665@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Amir Goldstein commit 98ca480a8f22fdbd768e3dad07024c8d4856576c upstream. An ino is unsigned, so display it as such in /proc/locks. Cc: stable@vger.kernel.org Signed-off-by: Amir Goldstein Signed-off-by: Jeff Layton Signed-off-by: Greg Kroah-Hartman --- fs/locks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/locks.c +++ b/fs/locks.c @@ -2853,7 +2853,7 @@ static void lock_get_status(struct seq_f } if (inode) { /* userspace relies on this representation of dev_t */ - seq_printf(f, "%d %02x:%02x:%ld ", fl_pid, + seq_printf(f, "%d %02x:%02x:%lu ", fl_pid, MAJOR(inode->i_sb->s_dev), MINOR(inode->i_sb->s_dev), inode->i_ino); } else {