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
6fe5042c
Commit
6fe5042c
authored
Mar 17, 2003
by
Dean Roehrich
Committed by
Stephen Lord
Mar 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] fix dmapi POSTCREATE event in xfs_create/xfs_mkdir
SGI Modid: 2.5.x-xfs:slinx:140501a
parent
2e8dcc3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
fs/xfs/xfs_vnodeops.c
fs/xfs/xfs_vnodeops.c
+9
-5
No files found.
fs/xfs/xfs_vnodeops.c
View file @
6fe5042c
...
...
@@ -1920,6 +1920,7 @@ xfs_create(
xfs_bmap_free_t
free_list
;
xfs_fsblock_t
first_block
;
boolean_t
dp_joined_to_trans
;
int
dm_event_sent
=
0
;
uint
cancel_flags
;
int
committed
;
xfs_prid_t
prid
;
...
...
@@ -1944,15 +1945,16 @@ xfs_create(
dm_di_mode
,
0
,
0
);
if
(
error
)
return
error
;
dm_event_sent
=
1
;
}
/* Return through std_return after this point. */
mp
=
dp
->
i_mount
;
if
(
XFS_FORCED_SHUTDOWN
(
mp
))
return
XFS_ERROR
(
EIO
);
/* Return through std_return after this point. */
udqp
=
gdqp
=
NULL
;
if
(
vap
->
va_mask
&
XFS_AT_PROJID
)
prid
=
(
xfs_prid_t
)
vap
->
va_projid
;
...
...
@@ -2112,12 +2114,12 @@ xfs_create(
/* Fallthrough to std_return with error = 0 */
std_return:
if
(
(
error
!=
0
)
&&
if
(
(
*
vpp
||
(
error
!=
0
&&
dm_event_sent
!=
0
)
)
&&
DM_EVENT_ENABLED
(
dir_vp
->
v_vfsp
,
XFS_BHVTOI
(
dir_bdp
),
DM_EVENT_POSTCREATE
))
{
(
void
)
dm_send_namesp_event
(
DM_EVENT_POSTCREATE
,
dir_bdp
,
DM_RIGHT_NULL
,
vn_bhv_lookup_unlocked
(
VN_BHV_HEAD
(
vp
),
&
xfs_vnodeops
)
,
*
vpp
?
vn_bhv_lookup_unlocked
(
VN_BHV_HEAD
(
vp
),
&
xfs_vnodeops
)
:
NULL
,
DM_RIGHT_NULL
,
name
,
NULL
,
dm_di_mode
,
error
,
0
);
}
...
...
@@ -2839,6 +2841,7 @@ xfs_mkdir(
vnode_t
*
dir_vp
;
boolean_t
dp_joined_to_trans
;
boolean_t
created
=
B_FALSE
;
int
dm_event_sent
=
0
;
xfs_prid_t
prid
;
xfs_dquot_t
*
udqp
,
*
gdqp
;
uint
resblks
;
...
...
@@ -2865,6 +2868,7 @@ xfs_mkdir(
dm_di_mode
,
0
,
0
);
if
(
error
)
return
error
;
dm_event_sent
=
1
;
}
/* Return through std_return after this point. */
...
...
@@ -3027,7 +3031,7 @@ xfs_mkdir(
* xfs_trans_commit. */
std_return:
if
(
(
created
||
(
error
!=
0
))
&&
if
(
(
created
||
(
error
!=
0
&&
dm_event_sent
!=
0
))
&&
DM_EVENT_ENABLED
(
dir_vp
->
v_vfsp
,
XFS_BHVTOI
(
dir_bdp
),
DM_EVENT_POSTCREATE
))
{
(
void
)
dm_send_namesp_event
(
DM_EVENT_POSTCREATE
,
...
...
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