Commit 4eb11a34 authored by Bharath SM's avatar Bharath SM Committed by Steve French
Browse files

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: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: default avatarBharath SM <bharathsm@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent a2182743
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
};