Message types for VFS inhibread
Change-Id: I4ce20a4566033593e4784fd278d7ff7fda16dd9d
This commit is contained in:
parent
6a94be7e63
commit
88f2d881a1
4 changed files with 11 additions and 3 deletions
|
@ -207,6 +207,13 @@ typedef struct {
|
||||||
} mess_fs_vfs_getdents;
|
} mess_fs_vfs_getdents;
|
||||||
_ASSERT_MSG_SIZE(mess_fs_vfs_getdents);
|
_ASSERT_MSG_SIZE(mess_fs_vfs_getdents);
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
ino_t inode;
|
||||||
|
|
||||||
|
uint8_t data[48];
|
||||||
|
} mess_vfs_fs_inhibread;
|
||||||
|
_ASSERT_MSG_SIZE(mess_vfs_fs_inhibread);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
ino_t inode;
|
ino_t inode;
|
||||||
ino_t dir_ino;
|
ino_t dir_ino;
|
||||||
|
@ -460,6 +467,7 @@ typedef struct {
|
||||||
mess_vfs_fs_ftrunc m_vfs_fs_ftrunc;
|
mess_vfs_fs_ftrunc m_vfs_fs_ftrunc;
|
||||||
mess_vfs_fs_getdents m_vfs_fs_getdents;
|
mess_vfs_fs_getdents m_vfs_fs_getdents;
|
||||||
mess_fs_vfs_getdents m_fs_vfs_getdents;
|
mess_fs_vfs_getdents m_fs_vfs_getdents;
|
||||||
|
mess_vfs_fs_inhibread m_vfs_fs_inhibread;
|
||||||
mess_vfs_fs_link m_vfs_fs_link;
|
mess_vfs_fs_link m_vfs_fs_link;
|
||||||
mess_vfs_fs_lookup m_vfs_fs_lookup;
|
mess_vfs_fs_lookup m_vfs_fs_lookup;
|
||||||
mess_fs_vfs_lookup m_fs_vfs_lookup;
|
mess_fs_vfs_lookup m_fs_vfs_lookup;
|
||||||
|
|
|
@ -355,7 +355,7 @@ int fs_inhibread()
|
||||||
{
|
{
|
||||||
struct inode *rip;
|
struct inode *rip;
|
||||||
|
|
||||||
if((rip = find_inode(fs_dev, (pino_t) fs_m_in.REQ_INODE_NR)) == NULL)
|
if((rip = find_inode(fs_dev, fs_m_in.m_vfs_fs_inhibread.inode)) == NULL)
|
||||||
return(EINVAL);
|
return(EINVAL);
|
||||||
|
|
||||||
/* inhibit read ahead */
|
/* inhibit read ahead */
|
||||||
|
|
|
@ -328,7 +328,7 @@ int fs_inhibread()
|
||||||
{
|
{
|
||||||
struct inode *rip;
|
struct inode *rip;
|
||||||
|
|
||||||
if((rip = find_inode(fs_dev, (pino_t) fs_m_in.REQ_INODE_NR)) == NULL)
|
if((rip = find_inode(fs_dev, fs_m_in.m_vfs_fs_inhibread.inode)) == NULL)
|
||||||
return(EINVAL);
|
return(EINVAL);
|
||||||
|
|
||||||
/* inhibit read ahead */
|
/* inhibit read ahead */
|
||||||
|
|
|
@ -373,7 +373,7 @@ int req_inhibread(endpoint_t fs_e, ino_t inode_nr)
|
||||||
|
|
||||||
/* Fill in request message */
|
/* Fill in request message */
|
||||||
m.m_type = REQ_INHIBREAD;
|
m.m_type = REQ_INHIBREAD;
|
||||||
m.REQ_INODE_NR = (pino_t) inode_nr;
|
m.m_vfs_fs_inhibread.inode = inode_nr;
|
||||||
|
|
||||||
/* Send/rec request */
|
/* Send/rec request */
|
||||||
return fs_sendrec(fs_e, &m);
|
return fs_sendrec(fs_e, &m);
|
||||||
|
|
Loading…
Reference in a new issue