Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dlm: handle release_option as unsigned

Future patches will introduce a invalid argument check for undefined
values. All values for release_option are positive integer values to not
check on negative values as well we just change the parameter to
unsigned int.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>

authored by

Alexander Aring and committed by
David Teigland
8d90041a a8abcff1

+6 -5
+4 -4
fs/dlm/lockspace.c
··· 676 676 This is because there may be LKBs queued as ASTs that have been unlinked 677 677 from their RSBs and are pending deletion once the AST has been delivered */ 678 678 679 - static int lockspace_busy(struct dlm_ls *ls, int release_option) 679 + static int lockspace_busy(struct dlm_ls *ls, unsigned int release_option) 680 680 { 681 681 struct dlm_lkb *lkb; 682 682 unsigned long id; ··· 704 704 return rv; 705 705 } 706 706 707 - static int release_lockspace(struct dlm_ls *ls, int release_option) 707 + static int release_lockspace(struct dlm_ls *ls, unsigned int release_option) 708 708 { 709 709 int busy, rv; 710 710 ··· 792 792 * See DLM_RELEASE defines for release_option values and their meaning. 793 793 */ 794 794 795 - int dlm_release_lockspace(void *lockspace, int force) 795 + int dlm_release_lockspace(void *lockspace, unsigned int release_option) 796 796 { 797 797 struct dlm_ls *ls; 798 798 int error; ··· 803 803 dlm_put_lockspace(ls); 804 804 805 805 mutex_lock(&ls_lock); 806 - error = release_lockspace(ls, force); 806 + error = release_lockspace(ls, release_option); 807 807 if (!error) 808 808 ls_count--; 809 809 if (!ls_count)
+2 -1
include/linux/dlm.h
··· 122 122 * release_option: see DLM_RELEASE values above. 123 123 */ 124 124 125 - int dlm_release_lockspace(dlm_lockspace_t *lockspace, int release_option); 125 + int dlm_release_lockspace(dlm_lockspace_t *lockspace, 126 + unsigned int release_option); 126 127 127 128 /* 128 129 * dlm_lock