Skip to content

Commit 2aaf178

Browse files
bharathsm-mssmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 9d5eff7 commit 2aaf178

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/smb/client/cached_dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ static void cached_dir_put_work(struct work_struct *work)
617617
queue_work(serverclose_wq, &cfid->close_work);
618618
}
619619

620-
int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16])
620+
bool cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16])
621621
{
622622
struct cached_fids *cfids = tcon->cfids;
623623
struct cached_fid *cfid;

fs/smb/client/cached_dir.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ extern void drop_cached_dir_by_name(const unsigned int xid,
8080
struct cifs_sb_info *cifs_sb);
8181
extern void close_all_cached_dirs(struct cifs_sb_info *cifs_sb);
8282
extern void invalidate_all_cached_dirs(struct cifs_tcon *tcon);
83-
extern int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]);
83+
extern bool cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]);
8484

8585
#endif /* _CACHED_DIR_H */

0 commit comments

Comments
 (0)