Skip to content
Snippets Groups Projects
Commit 2e147f1e authored by Richard Kennedy's avatar Richard Kennedy Committed by Al Viro
Browse files

fs: inode.c use atomic_inc_return in __iget


Using atomic_inc_return in __iget(struct inode *inode) makes the intent
of this code clearer and generates less code on processors that have
this operation.

On x86_64 this patch reduces the text size of inode.o by 12 bytes.

Signed-off-by: default avatarRichard Kennedy <richard@rsk.demon.co.uk>

----
patch against 2.6.34-rc7
compiled & tested on x86_64 AMD X2

I've been running with this patch applied for several weeks with no
obvious problems.
regards
Richard
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a7cf4145
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment