locks: cleanup code duplication
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 25 Jul 2008 08:48:57 +0000 (01:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:48 +0000 (10:53 -0700)
commitb648a6de00770cc325c22f43bdd4e935f6a2ee55
treefa2bc39a63059573b2c74b963f2d0e91c5f31b3a
parentbde74e4bc64415b142e556a34d295a52a1b7da9d
locks: cleanup code duplication

Extract common code into a function.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: David Teigland <teigland@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/locks.c