locks: implement delegations
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 5 Mar 2012 18:18:59 +0000 (13:18 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Nov 2013 05:16:41 +0000 (00:16 -0500)
commitdf4e8d2c1d2bbbbace706bfe5417320c9e3fbee3
tree0a56a71e11f39a638be30064411dc6c3363114b6
parent617588d5186c887eb94321b021bb5a46f896f4b3
locks: implement delegations

Implement NFSv4 delegations at the vfs level using the new FL_DELEG lock
type.

Note nfsd is the only delegation user and is only using read
delegations.  Warn on any attempt to set a write delegation for now.
We'll come back to that case later.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/locks.c
include/linux/fs.h