login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
26
Re: [PATCH 11/25] Unionfs: add un/likely conditionals on debug ops
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: roel
Subject:
Re: [PATCH 11/25] Unionfs: add un/likely conditionals on debug ops
Date: Wednesday, September 26, 2007 - 2:34 pm
Erez Zadok wrote:
quoted text
> Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> > --- > fs/unionfs/debug.c | 108 +++++++++++++++++++++++++++------------------------ > 1 files changed, 57 insertions(+), 51 deletions(-) > > diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c > index 9546a41..09b52ce 100644 > --- a/fs/unionfs/debug.c > +++ b/fs/unionfs/debug.c > @@ -56,19 +56,19 @@ void __unionfs_check_inode(const struct inode *inode, > sb = inode->i_sb; > istart = ibstart(inode); > iend = ibend(inode); > - if (istart > iend) { > + if (unlikely(istart > iend)) { > PRINT_CALLER(fname, fxn, line); > printk(" Ci0: inode=%p istart/end=%d:%d\n", > inode, istart, iend); > } > - if ((istart == -1 && iend != -1) || > - (istart != -1 && iend == -1)) { > + if (unlikely((istart == -1 && iend != -1) || > + (istart != -1 && iend == -1))) {
you could also do if (unlikely((istart == -1 || iend == -1) && istart != iend)) { [...]
quoted text
> @@ -138,8 +139,8 @@ void __unionfs_check_dentry(const struct dentry *dentry, > dend = dbend(dentry); > BUG_ON(dstart > dend); > > - if ((dstart == -1 && dend != -1) || > - (dstart != -1 && dend == -1)) { > + if (unlikely((dstart == -1 && dend != -1) || > + (dstart != -1 && dend == -1))) {
[...] the same here
quoted text
> @@ -223,30 +224,30 @@ void __unionfs_check_dentry(const struct dentry *dentry, > istart = ibstart(inode); > iend = ibend(inode); > BUG_ON(istart > iend); > - if ((istart == -1 && iend != -1) || > - (istart != -1 && iend == -1)) { > + if (unlikely((istart == -1 && iend != -1) || > + (istart != -1 && iend == -1))) {
and here [...]
quoted text
> @@ -350,30 +354,30 @@ void __unionfs_check_file(const struct file *file, > fend = fbend(file); > BUG_ON(fstart > fend); > > - if ((fstart == -1 && fend != -1) || > - (fstart != -1 && fend == -1)) { > + if (unlikely((fstart == -1 && fend != -1) || > + (fstart != -1 && fend == -1))) {
and here [...] -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[GIT PULL -mm] 00/25 Unionfs updates/cleanups/fixes
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 01/25] Unionfs: Simplify unionfs_get_nlinks
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 02/25] Unionfs: Remove unused #defines
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 03/25] Unionfs: display informational messages only ...
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 04/25] Unionfs: cache-coherency fixes
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 05/25] Unionfs: cast page->index loff_t before shifting
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 06/25] Unionfs: minor coding style updates
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 07/25] Unionfs: add lower nameidata debugging support
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 08/25] Unionfs: lower nameidata support for nfsv4
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 09/25] Unionfs: add un/likely conditionals on commo ...
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 10/25] Unionfs: add un/likely conditionals on copyu ...
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 11/25] Unionfs: add un/likely conditionals on debug ops
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 12/25] Unionfs: add un/likely conditionals on dentr ...
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 13/25] Unionfs: add un/likely conditionals on dir ops
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 14/25] Unionfs: add un/likely conditionals on headers
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 15/25] Unionfs: add un/likely conditionals on fileops
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 16/25] Unionfs: add un/likely conditionals on inode ops
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 17/25] Unionfs: add un/likely conditionals on looku ...
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 18/25] Unionfs: add un/likely conditionals on super ops
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 19/25] Unionfs: add un/likely conditionals on mmap ops
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 20/25] Unionfs: add un/likely conditionals on renam ...
, Erez Zadok
, (Tue Sep 25, 8:09 pm)
[PATCH 21/25] Unionfs: add un/likely conditionals on readd ...
, Erez Zadok
, (Tue Sep 25, 8:10 pm)
[PATCH 22/25] Unionfs: add un/likely conditionals on commo ...
, Erez Zadok
, (Tue Sep 25, 8:10 pm)
[PATCH 23/25] Unionfs: add un/likely conditionals on unlin ...
, Erez Zadok
, (Tue Sep 25, 8:10 pm)
[PATCH 24/25] Unionfs: add un/likely conditionals on xattr ops
, Erez Zadok
, (Tue Sep 25, 8:10 pm)
[PATCH 25/25] Unionfs: use poison.h for safe poison pointers
, Erez Zadok
, (Tue Sep 25, 8:10 pm)
Re: [PATCH 10/25] Unionfs: add un/likely conditionals on c ...
, Kok, Auke
, (Tue Sep 25, 9:32 pm)
Re: [PATCH 05/25] Unionfs: cast page->index loff_t before ...
, Christoph Hellwig
, (Wed Sep 26, 1:31 am)
Re: [PATCH 03/25] Unionfs: display informational messages ...
, Jan Engelhardt
, (Wed Sep 26, 1:36 am)
Re: [PATCH 10/25] Unionfs: add un/likely conditionals on c ...
, Erez Zadok
, (Wed Sep 26, 6:40 am)
Re: [PATCH 05/25] Unionfs: cast page->index loff_t before ...
, Erez Zadok
, (Wed Sep 26, 6:44 am)
Re: [PATCH 03/25] Unionfs: display informational messages ...
, Erez Zadok
, (Wed Sep 26, 7:01 am)
Re: [PATCH 10/25] Unionfs: add un/likely conditionals on c ...
, Kyle Moffett
, (Wed Sep 26, 8:23 am)
Re: [PATCH 03/25] Unionfs: display informational messages ...
, Jan Engelhardt
, (Wed Sep 26, 8:24 am)
Re: [PATCH 03/25] Unionfs: display informational messages ...
, Erez Zadok
, (Wed Sep 26, 8:28 am)
Re: [PATCH 10/25] Unionfs: add un/likely conditionals on c ...
, Erez Zadok
, (Wed Sep 26, 8:43 am)
Re: [PATCH 10/25] Unionfs: add un/likely conditionals on c ...
, Jan Engelhardt
, (Wed Sep 26, 9:47 am)
Re: [PATCH 10/25] Unionfs: add un/likely conditionals on c ...
, Erez Zadok
, (Wed Sep 26, 9:51 am)
Re: [PATCH 10/25] Unionfs: add un/likely conditionals on c ...
, Adrian Bunk
, (Wed Sep 26, 11:34 am)
Re: [PATCH 11/25] Unionfs: add un/likely conditionals on d ...
, roel
, (Wed Sep 26, 2:34 pm)
Re: [PATCH 13/25] Unionfs: add un/likely conditionals on d ...
, roel
, (Wed Sep 26, 2:40 pm)
Re: [PATCH 13/25] Unionfs: add un/likely conditionals on d ...
, Erez Zadok
, (Thu Sep 27, 7:28 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Frederic Weisbecker
[PATCH v2] struct sort_entry has a callback named snprintf that turns an entry int...
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Jens Axboe
Re: [BUG] Linux 2.6.25-rc2 - Regression from 2.6.24-rc1-git1 softlockup while bo...
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
Ingo Molnar
Re: [GIT PULL] time.c - respin
git
:
Junio C Hamano
Re: git-svnimport
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: Fwd: git status options feature suggestion
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
git-commits-head
:
Linux Kernel Mailing List
ARM: S3C64XX: DMA: Callback with correct buffer pointer
Linux Kernel Mailing List
sata_mv: drop unncessary EH callback resetting
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate