Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47473
b: refs/heads/master
c: 6bf7948
h: refs/heads/master
i:
  47471: db62f23
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 11, 2007
1 parent c31987e commit f03a0f8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8831a1d2c78c03b8193ab3acf56664fa3457265
refs/heads/master: 6bf79482f3288e19697d08c456b0bd6b1755d467
10 changes: 0 additions & 10 deletions trunk/arch/um/include/tempfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,3 @@
extern int make_tempfile(const char *template, char **tempname, int do_unlink);

#endif
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
* adjust the settings for this buffer only. This must remain at the end
* of the file.
* ---------------------------------------------------------------------------
* Local variables:
* c-file-style: "linux"
* End:
*/
3 changes: 2 additions & 1 deletion trunk/arch/um/kernel/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
#include "init.h"
#include "kern_constants.h"

/* Changed during early boot */
/* allocated in paging_init, zeroed in mem_init, and unchanged thereafter */
unsigned long *empty_zero_page = NULL;
/* allocated in paging_init and unchanged thereafter */
unsigned long *empty_bad_page = NULL;
pgd_t swapper_pg_dir[PTRS_PER_PGD];
unsigned long long highmem;
Expand Down
7 changes: 7 additions & 0 deletions trunk/arch/um/os-Linux/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@

#include <sys/param.h>

/* Modified by which_tmpdir, which is called during early boot */
static char *default_tmpdir = "/tmp";

/*
* Modified when creating the physical memory file and when checking
* the tmp filesystem for usability, both happening during early boot.
*/
static char *tempdir = NULL;

static void __init find_tempdir(void)
Expand Down Expand Up @@ -83,6 +89,7 @@ static int next(int fd, char *buf, int size, char c)
return 1;
}

/* which_tmpdir is called only during early boot */
static int checked_tmpdir = 0;

/* Look for a tmpfs mounted at /dev/shm. I couldn't find a cleaner
Expand Down

0 comments on commit f03a0f8

Please sign in to comment.