diff --git a/fs/exfat/dir.c b/fs/exfat/dir.c index 3a4853693d8b..e710dd196e2f 100644 --- a/fs/exfat/dir.c +++ b/fs/exfat/dir.c @@ -249,7 +249,7 @@ static int exfat_iterate(struct file *file, struct dir_context *ctx) */ if (err == -EIO) { cpos += 1 << (sb->s_blocksize_bits); - cpos &= ~(sb->s_blocksize - 1); + cpos &= ~(loff_t)(sb->s_blocksize - 1); } err = -EIO;