git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f767b0
)
[PATCH] splice: unlikely() optimizations
author
Jens Axboe
<axboe@suse.de>
Tue, 11 Apr 2006 11:56:09 +0000
(13:56 +0200)
committer
Jens Axboe
<axboe@suse.de>
Tue, 11 Apr 2006 11:56:09 +0000
(13:56 +0200)
Also corrects a few comments. Patch mainly from Ingo, changes by me.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jens Axboe <axboe@suse.de>
fs/read_write.c
patch
|
blob
|
history
fs/splice.c
patch
|
blob
|
history
diff --git
a/fs/read_write.c
b/fs/read_write.c
index
6256ca8
..
5bc0e92
100644
(file)
--- a/
fs/read_write.c
+++ b/
fs/read_write.c
@@
-202,7
+202,7
@@
int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count
goto Einval;
inode = file->f_dentry->d_inode;
- if (
inode->i_flock && MANDATORY_LOCK(inode
)) {
+ if (
unlikely(inode->i_flock && MANDATORY_LOCK(inode)
)) {
int retval = locks_mandatory_area(
read_write == READ ? FLOCK_VERIFY_READ : FLOCK_VERIFY_WRITE,
inode, file, pos, count);
diff --cc
fs/splice.c
Simple merge