]> git.baikalelectronics.ru Git - kernel.git/commit
locks: rename lease functions to reflect locks.c conventions
authorJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 7 Jun 2007 21:09:49 +0000 (17:09 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 18 Jul 2007 23:14:12 +0000 (19:14 -0400)
commit9f1c76b1217d2fc91273eb6d12e57b7590579c68
treed931351589579ce141110350de9ff11154328399
parentb7e46929c743b5668f25960b8fce352b5cf8bd32
locks: rename lease functions to reflect locks.c conventions

We've been using the convention that vfs_foo is the function that calls
a filesystem-specific foo method if it exists, or falls back on a
generic method if it doesn't; thus vfs_foo is what is called when some
other part of the kernel (normally lockd or nfsd) wants to get a lock,
whereas foo is what filesystems call to use the underlying local
functionality as part of their lock implementation.

So rename setlease to vfs_setlease (which will call a
filesystem-specific setlease after a later patch) and __setlease to
setlease.

Also, vfs_setlease need only be GPL-exported as long as it's only needed
by lockd and nfsd.

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
fs/locks.c
fs/nfsd/nfs4state.c
include/linux/fs.h