]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
commit4eb11a34b72c86d559f437fdadc47e512bba41d2
tree0b657dae21c5dcdda0e620e9a60539139321ebc0
parenta2182743a8b4969481f64aec4908ff162e8a206c
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>
fs/smb/client/cached_dir.h