From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034540AbcJ2OLf (ORCPT ); Sat, 29 Oct 2016 10:11:35 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33049 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933621AbcJ2OLd (ORCPT ); Sat, 29 Oct 2016 10:11:33 -0400 Date: Sat, 29 Oct 2016 19:11:23 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, xemul@parallels.com Subject: [PATCH] proc: make struct struct map_files_info::len unsigned int Message-ID: <20161029161123.GG1246@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linux doesn't support 4GB+ filenames in /proc, so unsigned long is too much. MOV r64, r/m64 is smaller than MOV r32, r/m32. Signed-off-by: Alexey Dobriyan --- fs/proc/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1967,7 +1967,7 @@ static int map_files_get_link(struct dentry *dentry, struct path *path) struct map_files_info { fmode_t mode; - unsigned long len; + unsigned int len; unsigned char name[4*sizeof(long)+2]; /* max: %lx-%lx\0 */ };