From: J. Bruce Fields <bfields@xxxxxxxxxxxxxx> Bring lease exports into line with conventions for posix locks: setlease() should be exported so filesystems can use it to implement their lease methods. vfs_setlease() need only be GPL-exported since only nfsd needs it. Signed-off-by: "J. Bruce Fields" <bfields@xxxxxxxxxxxxxx> --- fs/locks.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index c06a002..ac267af 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1427,6 +1427,8 @@ out: return error; } +EXPORT_SYMBOL(setlease); + /** * vfs_setlease - sets a lease on an open file * @filp: file pointer @@ -1451,7 +1453,7 @@ int vfs_setlease(struct file *filp, long arg, struct file_lock **lease) return error; } -EXPORT_SYMBOL(vfs_setlease); +EXPORT_SYMBOL_GPL(vfs_setlease); /** * fcntl_setlease - sets a lease on an open file -- 1.5.2.58.g98ee - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html