[3.13.y.z extended stable] Patch "CIFS: Fix wrong directory attributes after rename" has been added to staging queue
kamal at canonical.com
Tue Sep 30 21:29:25 UTC 2014
This is a note to let you know that I have just added a patch titled
CIFS: Fix wrong directory attributes after rename
to the linux-3.13.y-queue branch of the 3.13.y.z extended stable tree
which can be found at:
This patch is scheduled to be released in version 188.8.131.52.
If you, or anyone else, feels it should not be added to this tree, please
reply to this email.
For more information about the 3.13.y.z tree, see
>From 8c2b5f34ecb692b17a2e9de4613eba4cf24cb2f4 Mon Sep 17 00:00:00 2001
From: Pavel Shilovsky <pshilovsky at samba.org>
Date: Mon, 18 Aug 2014 20:49:58 +0400
Subject: CIFS: Fix wrong directory attributes after rename
commit b46799a8f28c43c5264ac8d8ffa28b311b557e03 upstream.
When we requests rename we also need to update attributes
of both source and target parent directories. Not doing it
causes generic/309 xfstest to fail on SMB2 mounts. Fix this
by marking these directories for force revalidating.
Signed-off-by: Pavel Shilovsky <pshilovsky at samba.org>
Signed-off-by: Steve French <smfrench at gmail.com>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
fs/cifs/inode.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 5f8bdff..36d2b1d 100644
@@ -1689,6 +1689,12 @@ unlink_target:
+ /* force revalidate to go get info when needed */
+ CIFS_I(source_dir)->time = CIFS_I(target_dir)->time = 0;
+ source_dir->i_ctime = source_dir->i_mtime = target_dir->i_ctime =
+ target_dir->i_mtime = current_fs_time(source_dir->i_sb);
More information about the kernel-team