From: Bharath SM Date: Thu, 19 Jun 2025 15:35:32 +0000 (+0530) Subject: smb: Use loff_t for directory position in cached_dirents X-Git-Tag: v6.16-rc3~8^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4eb11a34b72c86d559f437fdadc47e512bba41d2;p=thirdparty%2Fkernel%2Fstable.git 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) Signed-off-by: Bharath SM Signed-off-by: Steve French --- 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; };