* [PATCH] collapse sv_init, init_sv on linux
@ 2006-08-25 2:23 sandeen
2006-08-25 2:34 ` Nathan Scott
0 siblings, 1 reply; 2+ messages in thread
From: sandeen @ 2006-08-25 2:23 UTC (permalink / raw)
To: xfs
Change the one caller of init_sv on linux2.4 to sv_init, since there
is no difference between sv_init & init_sv on linux anyway.
Then get rid of now unused init_sv.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
linux-2.4/sv.h | 2 --
linux-2.4/xfs_vnode.c | 2 +-
linux-2.6/sv.h | 2 --
3 files changed, 1 insertion(+), 5 deletions(-)
Index: xfs-linux/linux-2.4/sv.h
===================================================================
--- xfs-linux.orig/linux-2.4/sv.h
+++ xfs-linux/linux-2.4/sv.h
@@ -53,8 +53,6 @@ static inline void _sv_wait(sv_t *sv, sp
remove_wait_queue(&sv->waiters, &wait);
}
-#define init_sv(sv,type,name,flag) \
- init_waitqueue_head(&(sv)->waiters)
#define sv_init(sv,flag,name) \
init_waitqueue_head(&(sv)->waiters)
#define sv_destroy(sv) \
Index: xfs-linux/linux-2.4/xfs_vnode.c
===================================================================
--- xfs-linux.orig/linux-2.4/xfs_vnode.c
+++ xfs-linux/linux-2.4/xfs_vnode.c
@@ -35,7 +35,7 @@ vn_init(void)
register int i;
for (svp = vsync, i = 0; i < NVSYNC; i++, svp++)
- init_sv(svp, SV_DEFAULT, "vsy", i);
+ sv_init(svp, SV_DEFAULT, "vsy");
}
struct bhv_vnode *
Index: xfs-linux/linux-2.6/sv.h
===================================================================
--- xfs-linux.orig/linux-2.6/sv.h
+++ xfs-linux/linux-2.6/sv.h
@@ -53,8 +53,6 @@ static inline void _sv_wait(sv_t *sv, sp
remove_wait_queue(&sv->waiters, &wait);
}
-#define init_sv(sv,type,name,flag) \
- init_waitqueue_head(&(sv)->waiters)
#define sv_init(sv,flag,name) \
init_waitqueue_head(&(sv)->waiters)
#define sv_destroy(sv) \
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] collapse sv_init, init_sv on linux
2006-08-25 2:23 [PATCH] collapse sv_init, init_sv on linux sandeen
@ 2006-08-25 2:34 ` Nathan Scott
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Scott @ 2006-08-25 2:34 UTC (permalink / raw)
To: sandeen; +Cc: xfs
On Thu, Aug 24, 2006 at 09:23:52PM -0500, sandeen@sandeen.net wrote:
> Change the one caller of init_sv on linux2.4 to sv_init, since there
> is no difference between sv_init & init_sv on linux anyway.
>
> Then get rid of now unused init_sv.
Taa, queued up (along with one or two earlier ones I didn't
reply to yet).
thanks.
--
Nathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-25 2:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-25 2:23 [PATCH] collapse sv_init, init_sv on linux sandeen
2006-08-25 2:34 ` Nathan Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox