From: Miklos Szeredi Date: Fri, 23 Jun 2006 09:05:10 +0000 (-0700) Subject: [PATCH] locks: don't do unnecessary allocations X-Git-Tag: v2.6.18-rc1~1081^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39005d022ad221b76dc2de0ac62ef475a796433b;p=pandora-kernel.git [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 Cc: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed