diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2010-05-14 11:49:22 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-22 00:31:21 +0200 |
commit | 2e147f1ef7d593b36c0e27a393b7d7ec0765f54b (patch) | |
tree | cc7746744467dfcedd8e5068eac982fc9c308515 /fs/readdir.c | |
parent | anon_inode: set S_IFREG on the anon_inode (diff) | |
download | linux-2e147f1ef7d593b36c0e27a393b7d7ec0765f54b.tar.xz linux-2e147f1ef7d593b36c0e27a393b7d7ec0765f54b.zip |
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: Richard 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: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions