diff options
| author | Bharath SM <bharathsm@microsoft.com> | 2025-07-01 00:19:32 +0530 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-07-27 16:59:59 -0500 |
| commit | 2aaf1784835f5f3063ae2392689053ebafd27e01 (patch) | |
| tree | a2fefbd2d96a77bb184b8c8cb76b398a9c8ae4a4 | |
| parent | cifs: reset iface weights when we cannot find a candidate (diff) | |
| download | linux-2aaf1784835f5f3063ae2392689053ebafd27e01.tar.gz linux-2aaf1784835f5f3063ae2392689053ebafd27e01.zip | |
smb: change return type of cached_dir_lease_break() to bool
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>
| -rw-r--r-- | fs/smb/client/cached_dir.c | 2 | ||||
| -rw-r--r-- | fs/smb/client/cached_dir.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c index 368e870624da..116470b1dfea 100644 --- a/fs/smb/client/cached_dir.c +++ b/fs/smb/client/cached_dir.c @@ -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; diff --git a/fs/smb/client/cached_dir.h b/fs/smb/client/cached_dir.h index a28f7cae3caa..070b0962de98 100644 --- a/fs/smb/client/cached_dir.h +++ b/fs/smb/client/cached_dir.h @@ -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 */ |
