diff options
author | Bharath SM <bharathsm@microsoft.com> | 2025-06-19 21:05:32 +0530 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-06-21 11:03:25 -0500 |
commit | 4eb11a34b72c86d559f437fdadc47e512bba41d2 (patch) | |
tree | 0b657dae21c5dcdda0e620e9a60539139321ebc0 | |
parent | a2182743a8b4969481f64aec4908ff162e8a206c (diff) |
smb: Use loff_t for directory position in cached_dirents
Change the pos field in struct cached_dirents from int to loff_t
to support large directory offsets. This avoids overflow and
matches kernel conventions for directory positions.
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r-- | fs/smb/client/cached_dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/cached_dir.h b/fs/smb/client/cached_dir.h index bc8a812ff95f..a28f7cae3caa 100644 --- a/fs/smb/client/cached_dir.h +++ b/fs/smb/client/cached_dir.h @@ -26,7 +26,7 @@ struct cached_dirents { * open file instance. */ struct mutex de_mutex; - int pos; /* Expected ctx->pos */ + loff_t pos; /* Expected ctx->pos */ struct list_head entries; }; |