From: Lionel Sambuc Date: Wed, 30 Apr 2014 14:17:44 +0000 (+0200) Subject: Message types for VFS inhibread X-Git-Tag: v3.3.0~336 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/mdoc.3.txt?a=commitdiff_plain;h=88f2d881a136ec2ddb9ac679aec5bea327d5bcc0;p=minix.git Message types for VFS inhibread Change-Id: I4ce20a4566033593e4784fd278d7ff7fda16dd9d --- diff --git a/include/minix/ipc.h b/include/minix/ipc.h index 5279e16ce..2835ce438 100644 --- a/include/minix/ipc.h +++ b/include/minix/ipc.h @@ -207,6 +207,13 @@ typedef struct { } 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 { ino_t inode; ino_t dir_ino; @@ -460,6 +467,7 @@ typedef struct { mess_vfs_fs_ftrunc m_vfs_fs_ftrunc; mess_vfs_fs_getdents m_vfs_fs_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_lookup m_vfs_fs_lookup; mess_fs_vfs_lookup m_fs_vfs_lookup; diff --git a/servers/ext2/open.c b/servers/ext2/open.c index a8a74f7b0..2435f5355 100644 --- a/servers/ext2/open.c +++ b/servers/ext2/open.c @@ -355,7 +355,7 @@ int fs_inhibread() { 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); /* inhibit read ahead */ diff --git a/servers/mfs/open.c b/servers/mfs/open.c index d41eef0db..3f780cf48 100644 --- a/servers/mfs/open.c +++ b/servers/mfs/open.c @@ -328,7 +328,7 @@ int fs_inhibread() { 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); /* inhibit read ahead */ diff --git a/servers/vfs/request.c b/servers/vfs/request.c index 25a8d38b9..234c916bd 100644 --- a/servers/vfs/request.c +++ b/servers/vfs/request.c @@ -373,7 +373,7 @@ int req_inhibread(endpoint_t fs_e, ino_t inode_nr) /* Fill in request message */ m.m_type = REQ_INHIBREAD; - m.REQ_INODE_NR = (pino_t) inode_nr; + m.m_vfs_fs_inhibread.inode = inode_nr; /* Send/rec request */ return fs_sendrec(fs_e, &m);