Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
0a9bde57
Commit
0a9bde57
authored
May 22, 2004
by
Dean Roehrich
Committed by
Nathan Scott
May 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Dmapi preunmount event references null pointer
SGI Modid: xfs-linux:xfs-kern:171047a
parent
8370abf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
fs/xfs/xfs_mount.h
fs/xfs/xfs_mount.h
+5
-2
fs/xfs/xfs_vfsops.c
fs/xfs/xfs_vfsops.c
+1
-1
No files found.
fs/xfs/xfs_mount.h
View file @
0a9bde57
...
...
@@ -95,7 +95,8 @@ typedef int (*xfs_send_data_t)(int, struct vnode *,
xfs_off_t
,
size_t
,
int
,
vrwlock_t
*
);
typedef
int
(
*
xfs_send_mmap_t
)(
struct
vm_area_struct
*
,
uint
);
typedef
int
(
*
xfs_send_destroy_t
)(
struct
vnode
*
,
dm_right_t
);
typedef
int
(
*
xfs_send_namesp_t
)(
dm_eventtype_t
,
struct
vnode
*
,
typedef
int
(
*
xfs_send_namesp_t
)(
dm_eventtype_t
,
struct
vfs
*
,
struct
vnode
*
,
dm_right_t
,
struct
vnode
*
,
dm_right_t
,
char
*
,
char
*
,
mode_t
,
int
,
int
);
typedef
void
(
*
xfs_send_unmount_t
)(
struct
vfs
*
,
struct
vnode
*
,
...
...
@@ -116,7 +117,9 @@ typedef struct xfs_dmops {
#define XFS_SEND_DESTROY(mp, vp,right) \
(*(mp)->m_dm_ops.xfs_send_destroy)(vp,right)
#define XFS_SEND_NAMESP(mp, ev,b1,r1,b2,r2,n1,n2,mode,rval,fl) \
(*(mp)->m_dm_ops.xfs_send_namesp)(ev,b1,r1,b2,r2,n1,n2,mode,rval,fl)
(*(mp)->m_dm_ops.xfs_send_namesp)(ev,NULL,b1,r1,b2,r2,n1,n2,mode,rval,fl)
#define XFS_SEND_PREUNMOUNT(mp, vfs,b1,r1,b2,r2,n1,n2,mode,rval,fl) \
(*(mp)->m_dm_ops.xfs_send_namesp)(DM_EVENT_PREUNMOUNT,vfs,b1,r1,b2,r2,n1,n2,mode,rval,fl)
#define XFS_SEND_UNMOUNT(mp, vfsp,vp,right,mode,rval,fl) \
(*(mp)->m_dm_ops.xfs_send_unmount)(vfsp,vp,right,mode,rval,fl)
...
...
fs/xfs/xfs_vfsops.c
View file @
0a9bde57
...
...
@@ -536,7 +536,7 @@ xfs_unmount(
rvp
=
XFS_ITOV
(
rip
);
if
(
vfsp
->
vfs_flag
&
VFS_DMI
)
{
error
=
XFS_SEND_
NAMESP
(
mp
,
DM_EVENT_PREUNMOUNT
,
error
=
XFS_SEND_
PREUNMOUNT
(
mp
,
vfsp
,
rvp
,
DM_RIGHT_NULL
,
rvp
,
DM_RIGHT_NULL
,
NULL
,
NULL
,
0
,
0
,
(
mp
->
m_dmevmask
&
(
1
<<
DM_EVENT_PREUNMOUNT
))
?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment