diff options
| author | Joe Perches <joe@perches.com> | 2014-08-22 10:18:42 -0400 |
|---|---|---|
| committer | Jeff Layton <jlayton@primarydata.com> | 2014-09-09 16:01:06 -0400 |
| commit | d0449b90f80f263e17e8b3ce31442e45121dc46c (patch) | |
| tree | ccf93559ff2721b5d5ea702e49d8689e44ae13d0 /fs/lockd | |
| parent | f39b913cee67e401ad697578baca0ba34830209b (diff) | |
locks: Remove unused conf argument from lm_grant
This argument is always NULL so don't pass it around.
[jlayton: remove dependencies on previous patches in series]
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Diffstat (limited to 'fs/lockd')
| -rw-r--r-- | fs/lockd/svclock.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c index ab798a88ec1d..2a6170133c1d 100644 --- a/fs/lockd/svclock.c +++ b/fs/lockd/svclock.c | |||
| @@ -667,22 +667,16 @@ nlmsvc_cancel_blocked(struct net *net, struct nlm_file *file, struct nlm_lock *l | |||
| 667 | * deferred rpc for GETLK and SETLK. | 667 | * deferred rpc for GETLK and SETLK. |
| 668 | */ | 668 | */ |
| 669 | static void | 669 | static void |
| 670 | nlmsvc_update_deferred_block(struct nlm_block *block, struct file_lock *conf, | 670 | nlmsvc_update_deferred_block(struct nlm_block *block, int result) |
| 671 | int result) | ||
| 672 | { | 671 | { |
| 673 | block->b_flags |= B_GOT_CALLBACK; | 672 | block->b_flags |= B_GOT_CALLBACK; |
| 674 | if (result == 0) | 673 | if (result == 0) |
| 675 | block->b_granted = 1; | 674 | block->b_granted = 1; |
| 676 | else | 675 | else |
| 677 | block->b_flags |= B_TIMED_OUT; | 676 | block->b_flags |= B_TIMED_OUT; |
| 678 | if (conf) { | ||
| 679 | if (block->b_fl) | ||
| 680 | __locks_copy_lock(block->b_fl, conf); | ||
| 681 | } | ||
| 682 | } | 677 | } |
| 683 | 678 | ||
| 684 | static int nlmsvc_grant_deferred(struct file_lock *fl, struct file_lock *conf, | 679 | static int nlmsvc_grant_deferred(struct file_lock *fl, int result) |
| 685 | int result) | ||
| 686 | { | 680 | { |
| 687 | struct nlm_block *block; | 681 | struct nlm_block *block; |
| 688 | int rc = -ENOENT; | 682 | int rc = -ENOENT; |
| @@ -697,7 +691,7 @@ static int nlmsvc_grant_deferred(struct file_lock *fl, struct file_lock *conf, | |||
| 697 | rc = -ENOLCK; | 691 | rc = -ENOLCK; |
| 698 | break; | 692 | break; |
| 699 | } | 693 | } |
| 700 | nlmsvc_update_deferred_block(block, conf, result); | 694 | nlmsvc_update_deferred_block(block, result); |
| 701 | } else if (result == 0) | 695 | } else if (result == 0) |
| 702 | block->b_granted = 1; | 696 | block->b_granted = 1; |
| 703 | 697 | ||
