summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe.montjoie@gmail.com>2017-09-26 03:14:07 -0400
committerJ. Bruce Fields <bfields@redhat.com>2017-09-26 09:25:38 -0400
commit003278e431bffa4070d18c821eff1d95867f24db (patch)
tree3dae336c9b79fee1bcdc809136e92bdebf279976 /include/linux/fs.h
parent809d4fcf9dd593af6d11ab1e6f0efc9fcfefb682 (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.h4
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 {
970struct net; 970struct net;
971void locks_start_grace(struct net *, struct lock_manager *); 971void locks_start_grace(struct net *, struct lock_manager *);
972void locks_end_grace(struct lock_manager *); 972void locks_end_grace(struct lock_manager *);
973int locks_in_grace(struct net *); 973bool locks_in_grace(struct net *);
974int opens_in_grace(struct net *); 974bool 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>