nuttx/fs:remove (flags & MAP_PRIVATE) == 0.

NuttX not support MAP_PRIVATE currently.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei 2023-02-28 20:59:27 +08:00 committed by Xiang Xiao
parent e872610071
commit a0206adcfa
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ static int file_mmap_(FAR struct file *filep, FAR void *start,
* in memory. * in memory.
*/ */
if ((flags & MAP_PRIVATE) == 0 && filep->f_inode && if (filep->f_inode &&
filep->f_inode->u.i_ops->mmap != NULL) filep->f_inode->u.i_ops->mmap != NULL)
{ {
ret = filep->f_inode->u.i_ops->mmap(filep, &entry); ret = filep->f_inode->u.i_ops->mmap(filep, &entry);