diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-07-20 20:21:59 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-07-20 20:23:19 -0400 |
commit | 8fb47a4fbf858a164e973b8ea8ef5e83e61f2e50 (patch) | |
tree | d3b55fbce0e7ba5708a55b91b1ab4079ad192db6 /fs/lockd | |
parent | c46556c6be057da79f51b1a8325ec4c27938bd49 (diff) |
locks: rename lock-manager ops
Both the filesystem and the lock manager can associate operations with a
lock. Confusingly, one of them (fl_release_private) actually has the
same name in both operation structures.
It would save some confusion to give the lock-manager ops different
names.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/svclock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c index 6e31695d046f..f0179c3745d2 100644 --- a/fs/lockd/svclock.c +++ b/fs/lockd/svclock.c | |||
@@ -632,7 +632,7 @@ nlmsvc_cancel_blocked(struct nlm_file *file, struct nlm_lock *lock) | |||
632 | 632 | ||
633 | /* | 633 | /* |
634 | * This is a callback from the filesystem for VFS file lock requests. | 634 | * This is a callback from the filesystem for VFS file lock requests. |
635 | * It will be used if fl_grant is defined and the filesystem can not | 635 | * It will be used if lm_grant is defined and the filesystem can not |
636 | * respond to the request immediately. | 636 | * respond to the request immediately. |
637 | * For GETLK request it will copy the reply to the nlm_block. | 637 | * For GETLK request it will copy the reply to the nlm_block. |
638 | * For SETLK or SETLKW request it will get the local posix lock. | 638 | * For SETLK or SETLKW request it will get the local posix lock. |
@@ -719,9 +719,9 @@ static int nlmsvc_same_owner(struct file_lock *fl1, struct file_lock *fl2) | |||
719 | } | 719 | } |
720 | 720 | ||
721 | const struct lock_manager_operations nlmsvc_lock_operations = { | 721 | const struct lock_manager_operations nlmsvc_lock_operations = { |
722 | .fl_compare_owner = nlmsvc_same_owner, | 722 | .lm_compare_owner = nlmsvc_same_owner, |
723 | .fl_notify = nlmsvc_notify_blocked, | 723 | .lm_notify = nlmsvc_notify_blocked, |
724 | .fl_grant = nlmsvc_grant_deferred, | 724 | .lm_grant = nlmsvc_grant_deferred, |
725 | }; | 725 | }; |
726 | 726 | ||
727 | /* | 727 | /* |