]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: Use loff_t for directory position in cached_dirents
authorBharath SM <bharathsm@microsoft.com>
Thu, 19 Jun 2025 15:35:32 +0000 (21:05 +0530)
committerSteve French <stfrench@microsoft.com>
Sat, 21 Jun 2025 16:03:25 +0000 (11:03 -0500)
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>
fs/smb/client/cached_dir.h

index bc8a812ff95f8bd3aa0c2f4c550483ca649124b1..a28f7cae3caa4b096ef49a3cc4dd9788aaf4c216 100644 (file)
@@ -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;
 };