diff options
author | Corentin Labbe <clabbe.montjoie@gmail.com> | 2017-09-26 09:14:07 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-09-26 15:25:38 +0200 |
commit | 003278e431bffa4070d18c821eff1d95867f24db (patch) | |
tree | 3dae336c9b79fee1bcdc809136e92bdebf279976 /include | |
parent | nfs_common: move locks_in_grace comment at the right place (diff) | |
download | linux-003278e431bffa4070d18c821eff1d95867f24db.tar.xz linux-003278e431bffa4070d18c821eff1d95867f24db.zip |
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')
-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 { struct net; void locks_start_grace(struct net *, struct lock_manager *); void locks_end_grace(struct lock_manager *); -int locks_in_grace(struct net *); -int opens_in_grace(struct net *); +bool locks_in_grace(struct net *); +bool opens_in_grace(struct net *); /* that will die - we need it for nfs_lock_info */ #include <linux/nfs_fs_i.h> |