]> git.baikalelectronics.ru Git - kernel.git/commit
locks: factor out generic/filesystem switch from setlock code
authorMarc Eshel <eshel@almaden.ibm.com>
Thu, 18 Jan 2007 20:08:55 +0000 (15:08 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 6 May 2007 22:08:49 +0000 (18:08 -0400)
commit9f03134fcfe1e3d429348be695cb7195d74d9146
treeaf712e690d1de0a2e693830f6e056455c1725a92
parent477e21211b5a5f56c36b869a9fe9dff7d9060fb0
locks: factor out generic/filesystem switch from setlock code

Factor out the code that switches between generic and filesystem-specific lock
methods; eventually we want to call this from lock managers (lockd and nfsd)
too; currently they only call the generic methods.

This patch does that for all the setlk code.

Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
fs/locks.c
include/linux/fs.h