OSDN Git Service

Staging: lustre: Replace non-standard spin-lock's macro
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sun, 5 Oct 2014 11:58:06 +0000 (17:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:09 +0000 (10:29 +0800)
commit12afe4935a35c2bdd71da59e86afa6e9d5fd6562
tree7fa90b68f345b71d59ae6abcc4d1b01e9973dcbe
parent4a1b86dc6c3e0678cbad701599b161b3d9f9ce42
Staging: lustre: Replace non-standard spin-lock's macro

This patch replaces non-standard spin lock macro with standard linux function.

This is done using Coccinelle and semantic patch used is as follows:

@@
expression x;
@@

- TREE_READ_LOCK_IRQ(x)
+ spin_lock_irq(&x->tree_lock)

@@
expression x;
@@

- TREE_READ_UNLOCK_IRQ(x)
+ spin_unlock_irq(&x->tree_lock)

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c