* [PATCH] proc: make struct struct map_files_info::len unsigned int
@ 2016-10-29 16:11 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2016-10-29 16:11 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, xemul
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 <adobriyan@gmail.com>
---
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 */
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-29 14:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-29 16:11 [PATCH] proc: make struct struct map_files_info::len unsigned int Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox