mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
fs: Move mmap callback before truncate in [file|mountpt]_operations
since mmap may exist in block_operations, but truncate may not, moving mmap beforee truncate could make three struct more compatible Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c623ee20f1
commit
b0a0ba3ad7
103 changed files with 105 additions and 106 deletions
|
|
@ -66,8 +66,8 @@ const struct file_operations g_nxterm_drvrops =
|
|||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
nxterm_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, nxterm_unlink /* unlink */
|
||||
|
|
@ -84,8 +84,8 @@ const struct file_operations g_nxterm_drvrops =
|
|||
nxterm_write, /* write */
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, nxterm_unlink /* unlink */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue