]> err.no Git - linux-2.6/commit
[PATCH] avoid one conditional branch in touch_atime()
authorEric Dumazet <dada1@cosmosbay.com>
Sat, 10 Feb 2007 09:44:49 +0000 (01:44 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:25 +0000 (10:51 -0800)
commit37756ced1f145aec18917812c3b8a96dbb47990d
treea293813e3dce24a161c2cf029c4139086a23d978
parent4ba4d4c0c52201009232fe9e781a281054a24e75
[PATCH] avoid one conditional branch in touch_atime()

I added IS_NOATIME(inode) macro definition in include/linux/fs.h, true if
the inode superblock is marked readonly or noatime.

This new macro is then used in touch_atime() instead of separatly testing
MS_RDONLY and MS_NOATIME

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/inode.c
include/linux/fs.h