From: Salah Triki <salah.triki@acm.org>
To: tigran@aivazian.fsnet.co.uk
Cc: salah.triki@acm.org, linux-kernel@vger.kernel.org
Subject: [PATCH] bfs: rename should update mtime
Date: Mon, 25 Apr 2016 15:03:06 +0100 [thread overview]
Message-ID: <1461592986-5542-1-git-send-email-salah.triki@acm.org> (raw)
bfs_rename should update mtime on target.
Signed-off-by: Salah Triki <salah.triki@acm.org>
---
fs/bfs/dir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c
index 3ec6113..d5902d9 100644
--- a/fs/bfs/dir.c
+++ b/fs/bfs/dir.c
@@ -252,7 +252,7 @@ static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry,
old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME_SEC;
mark_inode_dirty(old_dir);
if (new_inode) {
- new_inode->i_ctime = CURRENT_TIME_SEC;
+ new_inode->i_ctime = new_inode->i_mtime = CURRENT_TIME_SEC;
inode_dec_link_count(new_inode);
}
mark_buffer_dirty_inode(old_bh, old_dir);
--
1.9.1
reply other threads:[~2016-04-25 14:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461592986-5542-1-git-send-email-salah.triki@acm.org \
--to=salah.triki@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tigran@aivazian.fsnet.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®