Skip to content

Commit

Permalink
ncpfs: successful rename() should invalidate caches for parents
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 14, 2015
1 parent 2159184 commit 3f4a949
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ncpfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,8 @@ static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry,
case 0x00:
ncp_dbg(1, "renamed %pd -> %pd\n",
old_dentry, new_dentry);
ncp_d_prune(old_dentry);
ncp_d_prune(new_dentry);
break;
case 0x9E:
error = -ENAMETOOLONG;
Expand Down

0 comments on commit 3f4a949

Please sign in to comment.