X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fpnode.c;h=89940f243fc235d2f2f8d9abf27e5b0f6862cd52;hb=fd2d42912f9f09e5250cb3b024ee0625704e9cb7;hp=da42ee61c1dfd9dee68251b3ba3bdad78a86185d;hpb=61a46dc9d1c10d07a2ed6b7d346b868803b52506;p=linux-2.6-omap-h63xx.git diff --git a/fs/pnode.c b/fs/pnode.c index da42ee61c1d..89940f243fc 100644 --- a/fs/pnode.c +++ b/fs/pnode.c @@ -6,7 +6,7 @@ * Author : Ram Pai (linuxram@us.ibm.com) * */ -#include +#include #include #include #include "pnode.h" @@ -59,7 +59,7 @@ static int do_make_slave(struct vfsmount *mnt) } else { struct list_head *p = &mnt->mnt_slave_list; while (!list_empty(p)) { - slave_mnt = list_entry(p->next, + slave_mnt = list_first_entry(p, struct vfsmount, mnt_slave); list_del_init(&slave_mnt->mnt_slave); slave_mnt->mnt_master = NULL;