diff options
author | Corentin Labbe <clabbe.montjoie@gmail.com> | 2017-09-26 03:14:07 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-09-26 09:25:38 -0400 |
commit | 003278e431bffa4070d18c821eff1d95867f24db (patch) | |
tree | 3dae336c9b79fee1bcdc809136e92bdebf279976 /include/linux/fs.h | |
parent | 809d4fcf9dd593af6d11ab1e6f0efc9fcfefb682 (diff) |
nfs_common: convert int to bool
Since __state_in_grace return only true/false, make it return bool
instead of int.
Same change for the two user of it, locks_in_grace/opens_in_grace
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 339e73742e73..8cc0493c7c39 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -970,8 +970,8 @@ struct lock_manager { | |||
970 | struct net; | 970 | struct net; |
971 | void locks_start_grace(struct net *, struct lock_manager *); | 971 | void locks_start_grace(struct net *, struct lock_manager *); |
972 | void locks_end_grace(struct lock_manager *); | 972 | void locks_end_grace(struct lock_manager *); |
973 | int locks_in_grace(struct net *); | 973 | bool locks_in_grace(struct net *); |
974 | int opens_in_grace(struct net *); | 974 | bool opens_in_grace(struct net *); |
975 | 975 | ||
976 | /* that will die - we need it for nfs_lock_info */ | 976 | /* that will die - we need it for nfs_lock_info */ |
977 | #include <linux/nfs_fs_i.h> | 977 | #include <linux/nfs_fs_i.h> |