diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-06-23 11:05:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 16:43:02 +0200 |
commit | 39005d022ad221b76dc2de0ac62ef475a796433b (patch) | |
tree | e0a36fec7076d48764f0588b9ce09ce8e9f067ff /Kbuild | |
parent | [PATCH] locks: don't unnecessarily fail posix lock operations (diff) | |
download | linux-39005d022ad221b76dc2de0ac62ef475a796433b.tar.xz linux-39005d022ad221b76dc2de0ac62ef475a796433b.zip |
[PATCH] locks: don't do unnecessary allocations
posix_lock_file() always allocates new locks in advance, even if it's easy to
determine that no allocations will be needed.
Optimize these cases:
- FL_ACCESS flag is set
- Unlocking the whole range
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions