aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBharath SM <[email protected]>2025-06-19 15:35:32 +0000
committerSteve French <[email protected]>2025-06-21 16:03:25 +0000
commit4eb11a34b72c86d559f437fdadc47e512bba41d2 (patch)
tree0b657dae21c5dcdda0e620e9a60539139321ebc0
parentsmb: Log an error when close_all_cached_dirs fails (diff)
downloadkernel-4eb11a34b72c86d559f437fdadc47e512bba41d2.tar.gz
kernel-4eb11a34b72c86d559f437fdadc47e512bba41d2.zip
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) <[email protected]> Signed-off-by: Bharath SM <[email protected]> Signed-off-by: Steve French <[email protected]>
-rw-r--r--fs/smb/client/cached_dir.h2
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;
};