diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 01:27:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:43:06 -0700 |
commit | 1466abf2d03207b42980ddf8cde1fba17b7cd301 (patch) | |
tree | 402f8a77f5b08c3a9130e341df402fb6c02b5c02 /fs/hostfs | |
parent | 512b6fb1c14d4c34f23a3419b0789ad01914a899 (diff) | |
download | linux-1466abf2d03207b42980ddf8cde1fba17b7cd301.tar.gz linux-1466abf2d03207b42980ddf8cde1fba17b7cd301.tar.bz2 linux-1466abf2d03207b42980ddf8cde1fba17b7cd301.zip |
uml: clean up tlb flush path
Tidy the tlb flushing code.
With tt mode gone, there is no reason to have the capability to have
called directly from do_mmap, do_mprotect, and do_munmap, rather than
calling a function pointer that it is given.
There was a large amount of data that was passed from function to
function, being used at the lowest level, without being changed. This
stuff is now encapsulated in a structure which is initialized at the
top layer and passed down. This simplifies the code, reduces the
amount of code needed to pass the parameters around, and saves on
stack space.
A somewhat more subtle change is the meaning of the current operation
index. It used to start at -1, being pre-incremented when adding an
operation. It now starts at 0, being post-incremented, with
associated adjustments of +/- 1 on comparisons.
In addition, tlb.h contained a couple of declarations which had no
users outside of tlb.c, so they could be moved or deleted.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hostfs')
0 files changed, 0 insertions, 0 deletions