Skip to contentSkip to conversation

proc: make struct struct map_files_info::len unsigned int

PATCH Applied Alexey Dobriyan 1 participant 1 message Oct 29, 2016 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: make struct struct map_files_info::len unsigned int

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.

---

 fs/proc/base.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/base.c +1 -1
@@ -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 */
 };