bfs: rename should update mtime
PATCH v3 1/1 bfs: rename should update mtime
bfs_rename should update ctime and mtime on target, and mark the target as dirty.
Signed-off-by Salah Triki <[email protected]>
--- fs/bfs/dir.c | 2 ++ 1 file changed, 2 insertions(+)
fs/bfs/dir.c +2 -0
@@ -254,6 +254,8 @@ static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry,if (new_inode) { new_inode->i_ctime =CURRENT_TIME_SEC ;inode_dec_link_count (new_inode); + new_dir->i_ctime = new_dir->i_mtime =CURRENT_TIME_SEC ; +mark_inode_dirty (new_dir); }mark_buffer_dirty_inode (old_bh, old_dir); error =0 ;
Signature · 1 line
1.9.1