diff options
author | 2008-06-29 22:50:56 +0200 | |
---|---|---|
committer | 2008-06-29 22:50:56 +0200 | |
commit | 9be48a94b8ae8c944dc918ad65f2f27e9df3ed00 (patch) | |
tree | 3cedc0a34bfc219d66a0ef3cfd395d5c7b06e7a6 /fs/jbd2/commit.c | |
parent | Linux 2.6.26-rc8 (diff) | |
download | linux-dev-9be48a94b8ae8c944dc918ad65f2f27e9df3ed00.tar.xz linux-dev-9be48a94b8ae8c944dc918ad65f2f27e9df3ed00.zip |
It looks at least odd to apply spin_unlock to a mutex.
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@def@
declarer DEFINE_MUTEX;
identifier m;
@@
DEFINE_MUTEX(m);
@@
identifier def.m;
@@
(
- spin_lock(&m)
+ mutex_lock(&m)
|
- spin_unlock(&m)
+ mutex_unlock(&m)
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions