mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08: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:
committed by
Petro Karashchenko
parent
c623ee20f1
commit
b0a0ba3ad7
+2
-2
@@ -125,8 +125,8 @@ static const struct file_operations g_cryptofops =
|
||||
cryptof_write, /* write */
|
||||
NULL, /* seek */
|
||||
cryptof_ioctl, /* ioctl */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
cryptof_poll /* poll */
|
||||
};
|
||||
|
||||
@@ -138,8 +138,8 @@ static const struct file_operations g_cryptoops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
cryptoioctl, /* ioctl */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL /* poll */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user