[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081128093419.GM28946@ZenIV.linux.org.uk>
Date: Fri, 28 Nov 2008 09:34:19 +0000
From: Al Viro <viro@...IV.linux.org.uk>
To: Eric Dumazet <dada1@...mosbay.com>
Cc: Ingo Molnar <mingo@...e.hu>, David Miller <davem@...emloft.net>,
"Rafael J. Wysocki" <rjw@...k.pl>, linux-kernel@...r.kernel.org,
kernel-testers@...r.kernel.org, Mike Galbraith <efault@....de>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Linux Netdev List <netdev@...r.kernel.org>,
Christoph Lameter <cl@...ux-foundation.org>,
Christoph Hellwig <hch@...radead.org>, rth@...ddle.net,
ink@...assic.park.msu.ru
Subject: Re: [PATCH 6/6] fs: Introduce kern_mount_special() to mount
special vfs
On Fri, Nov 28, 2008 at 09:26:04AM +0000, Al Viro wrote:
gyah... That would be
> static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
> {
> unsigned long temp, res;
> __asm__ __volatile__(
> "1: ldl_l %0,%1\n"
> " cmpne %0,%4,%2\n"
" beq %2,3f\n"
" addl %0,%3,%2\n"
> " stl_c %2,%1\n"
> " beq %2,2f\n"
> "3:\n"
> ".subsection 2\n"
> "2: br 1b\n"
> ".previous"
> :"=&r" (temp), "=m" (v->counter), "=&r" (res)
> :"Ir" (a), "Ir" (u), "m" (v->counter) : "memory");
> smp_mb();
> return res;
> }
>
> static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
> {
> unsigned long temp, res;
> __asm__ __volatile__(
> "1: ldq_l %0,%1\n"
> " cmpne %0,%4,%2\n"
" beq %2,3f\n"
" addq %0,%3,%2\n"
> " stq_c %2,%1\n"
> " beq %2,2f\n"
> "3:\n"
> ".subsection 2\n"
> "2: br 1b\n"
> ".previous"
> :"=&r" (temp), "=m" (v->counter), "=&r" (res)
> :"Ir" (a), "Ir" (u), "m" (v->counter) : "memory");
> smp_mb();
> return res;
> }
>
> Comments?
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists