diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:44:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:23 -0500 |
commit | 6bf79482f3288e19697d08c456b0bd6b1755d467 (patch) | |
tree | ad7c1f9a18e5738175d2d8daeb65e099b6a50b02 /arch/um/os-Linux/mem.c | |
parent | b8831a1d2c78c03b8193ab3acf56664fa3457265 (diff) |
[PATCH] uml: locking comments in memory and tempfile code
Locking comments and emacs comment removal in the low-level memory and
temp file code.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux/mem.c')
-rw-r--r-- | arch/um/os-Linux/mem.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c index 4203681e508d..82b874580f63 100644 --- a/arch/um/os-Linux/mem.c +++ b/arch/um/os-Linux/mem.c | |||
@@ -20,7 +20,13 @@ | |||
20 | 20 | ||
21 | #include <sys/param.h> | 21 | #include <sys/param.h> |
22 | 22 | ||
23 | /* Modified by which_tmpdir, which is called during early boot */ | ||
23 | static char *default_tmpdir = "/tmp"; | 24 | static char *default_tmpdir = "/tmp"; |
25 | |||
26 | /* | ||
27 | * Modified when creating the physical memory file and when checking | ||
28 | * the tmp filesystem for usability, both happening during early boot. | ||
29 | */ | ||
24 | static char *tempdir = NULL; | 30 | static char *tempdir = NULL; |
25 | 31 | ||
26 | static void __init find_tempdir(void) | 32 | static void __init find_tempdir(void) |
@@ -83,6 +89,7 @@ static int next(int fd, char *buf, int size, char c) | |||
83 | return 1; | 89 | return 1; |
84 | } | 90 | } |
85 | 91 | ||
92 | /* which_tmpdir is called only during early boot */ | ||
86 | static int checked_tmpdir = 0; | 93 | static int checked_tmpdir = 0; |
87 | 94 | ||
88 | /* Look for a tmpfs mounted at /dev/shm. I couldn't find a cleaner | 95 | /* Look for a tmpfs mounted at /dev/shm. I couldn't find a cleaner |