]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb: change return type of cached_dir_lease_break() to bool
authorBharath SM <bharathsm@microsoft.com>
Mon, 30 Jun 2025 18:49:32 +0000 (00:19 +0530)
committerSteve French <stfrench@microsoft.com>
Sun, 27 Jul 2025 21:59:59 +0000 (16:59 -0500)
cached_dir_lease_break() has return type as int but only
returning true or false. change return type of this function
to bool for clarity.

Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cached_dir.c
fs/smb/client/cached_dir.h

index 368e870624dac69c27531a2016d04fc23f18129c..116470b1dfea90364dbf77bc39ff30edfe3df5e2 100644 (file)
@@ -617,7 +617,7 @@ static void cached_dir_put_work(struct work_struct *work)
        queue_work(serverclose_wq, &cfid->close_work);
 }
 
-int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16])
+bool cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16])
 {
        struct cached_fids *cfids = tcon->cfids;
        struct cached_fid *cfid;
index a28f7cae3caa4b096ef49a3cc4dd9788aaf4c216..070b0962de9856581cb0190b4350a5323939804f 100644 (file)
@@ -80,6 +80,6 @@ extern void drop_cached_dir_by_name(const unsigned int xid,
                                    struct cifs_sb_info *cifs_sb);
 extern void close_all_cached_dirs(struct cifs_sb_info *cifs_sb);
 extern void invalidate_all_cached_dirs(struct cifs_tcon *tcon);
-extern int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]);
+extern bool cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]);
 
 #endif                 /* _CACHED_DIR_H */