]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: Restrict inode changes in ocfs2_update_inode_atime()
authorMark Fasheh <mark.fasheh@oracle.com>
Fri, 20 Jul 2007 18:24:53 +0000 (11:24 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 10 Aug 2007 00:23:50 +0000 (17:23 -0700)
commitc11e9fafb398411af7558fca913c2fa4a10b1f48
treede1879d52677c612f2efa8e98df8c218cd477230
parent6adb31c90c47262c8a25bf5097de9b3426caf3ae
ocfs2: Restrict inode changes in ocfs2_update_inode_atime()

ocfs2_update_inode_atime() calls ocfs2_mark_inode_dirty() to push changes
from the struct inode into the ocfs2 disk inode. The problem is,
ocfs2_mark_inode_dirty() might change other fields, depending on what
happened to the struct inode. Since we don't always have locking to
serialize changes to other fields (like i_size, etc), just fix things up to
only touch the atime field.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/file.c