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
622cba6b
Commit
622cba6b
authored
Dec 04, 2002
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Update the vn lock/unlock macros to keep code in sync, no functional change.
SGI Modid: 2.5.x-xfs:slinx:134107a
parent
ab19f1a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
fs/xfs/linux/xfs_vnode.c
fs/xfs/linux/xfs_vnode.c
+9
-9
fs/xfs/linux/xfs_vnode.h
fs/xfs/linux/xfs_vnode.h
+2
-2
No files found.
fs/xfs/linux/xfs_vnode.c
View file @
622cba6b
...
...
@@ -94,7 +94,7 @@ vn_reclaim(struct vnode *vp)
VN_LOCK
(
vp
);
vp
->
v_flag
&=
(
VRECLM
|
VWAIT
);
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
vp
->
v_type
=
VNON
;
vp
->
v_fbhv
=
NULL
;
...
...
@@ -115,7 +115,7 @@ vn_wakeup(struct vnode *vp)
sv_broadcast
(
vptosync
(
vp
));
}
vp
->
v_flag
&=
~
(
VRECLM
|
VWAIT
|
VMODIFIED
);
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
}
int
...
...
@@ -127,7 +127,7 @@ vn_wait(struct vnode *vp)
sv_wait
(
vptosync
(
vp
),
PINOD
,
&
vp
->
v_lock
,
0
);
return
1
;
}
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
return
0
;
}
...
...
@@ -235,7 +235,7 @@ vn_purge(struct vnode *vp, vmap_t *vmap)
*/
VN_LOCK
(
vp
);
if
(
vp
->
v_number
!=
vmap
->
v_number
)
{
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
return
;
}
...
...
@@ -256,13 +256,13 @@ vn_purge(struct vnode *vp, vmap_t *vmap)
* Another process could have raced in and gotten this vnode...
*/
if
(
vn_count
(
vp
)
>
0
)
{
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
return
;
}
XFS_STATS_DEC
(
xfsstats
.
vn_active
);
vp
->
v_flag
|=
VRECLM
;
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
/*
* Call VOP_RECLAIM and clean vp. The FSYNC_INVAL flag tells
...
...
@@ -292,7 +292,7 @@ vn_hold(struct vnode *vp)
VN_LOCK
(
vp
);
inode
=
igrab
(
LINVFS_GET_IP
(
vp
));
ASSERT
(
inode
);
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
return
vp
;
}
...
...
@@ -324,7 +324,7 @@ vn_rele(struct vnode *vp)
* until we turn off VINACT or VRECLM
*/
vp
->
v_flag
|=
VINACT
;
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
/*
* Do not make the VOP_INACTIVE call if there
...
...
@@ -345,7 +345,7 @@ vn_rele(struct vnode *vp)
}
VN_UNLOCK
(
vp
);
VN_UNLOCK
(
vp
,
0
);
vn_trace_exit
(
vp
,
"vn_rele"
,
(
inst_t
*
)
__return_address
);
}
...
...
fs/xfs/linux/xfs_vnode.h
View file @
622cba6b
...
...
@@ -682,8 +682,8 @@ extern void vn_rele(struct vnode *);
/*
* Vnode spinlock manipulation.
*/
#define VN_LOCK(vp)
spin_
lock(&(vp)->v_lock)
#define VN_UNLOCK(vp
) spin_
unlock(&(vp)->v_lock)
#define VN_LOCK(vp)
mutex_spin
lock(&(vp)->v_lock)
#define VN_UNLOCK(vp
, s) mutex_spin
unlock(&(vp)->v_lock)
#define VN_FLAGSET(vp,b) vn_flagset(vp,b)
#define VN_FLAGCLR(vp,b) vn_flagclr(vp,b)
...
...
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