diff options
| author | Miklos Szeredi <[email protected]> | 2006-06-23 02:05:10 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-06-23 07:43:02 -0700 |
| commit | 39005d022ad221b76dc2de0ac62ef475a796433b (patch) | |
| tree | e0a36fec7076d48764f0588b9ce09ce8e9f067ff /scripts | |
| parent | 0d9a490abe1f69fda220f7866f6f23af41daa128 (diff) | |
[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 <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions