]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Fix rename/extend race
authorSunil Mushran <sunil.musran@oracle.com>
Mon, 6 Aug 2007 22:11:56 +0000 (15:11 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 10 Aug 2007 00:27:10 +0000 (17:27 -0700)
commitfad611d369231067f6feb21a119b21a962d82bb6
tree558ca94278953cc2c01e60a206954d059fda75b1
parentb0b65ab1af3e9c1dcb8927e02b923966916abfa7
ocfs2: Fix rename/extend race

If one process is extending a file while another is renaming it, there
exists a window when rename could flush the old inode's stale i_size to
disk. This patch recognizes the fact that rename is only updating the old
inode's ctime, so it ensures only that value is flushed to disk.

Signed-off-by: Sunil Mushran <sunil.musran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/namei.c