From: NeilBrown Date: Mon, 23 Mar 2015 02:37:40 +0000 (+1100) Subject: VFS/namei: make the use of touch_atime() in get_link() RCU-safe. X-Git-Tag: omap-for-v4.2/fixes-rc1^2~184^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fa9dd24667f2d6997ec21341019657342859d31;p=pandora-kernel.git VFS/namei: make the use of touch_atime() in get_link() RCU-safe. touch_atime is not RCU-safe, and so cannot be called on an RCU walk. However, in situations where RCU-walk makes a difference, the symlink will likely to accessed much more often than it is useful to update the atime. So split out the test of "Does the atime actually need to be updated" into atime_needs_update(), and have get_link() unlazy if it finds that it will need to do that update. Signed-off-by: NeilBrown Signed-off-by: Al Viro --- Reading git-diff-tree failed