mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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>
This commit is contained in:
parent
a2182743a8
commit
4eb11a34b7
@ -26,7 +26,7 @@ struct cached_dirents {
|
|||||||
* open file instance.
|
* open file instance.
|
||||||
*/
|
*/
|
||||||
struct mutex de_mutex;
|
struct mutex de_mutex;
|
||||||
int pos; /* Expected ctx->pos */
|
loff_t pos; /* Expected ctx->pos */
|
||||||
struct list_head entries;
|
struct list_head entries;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user