From: Al Viro Date: Sat, 6 Jun 2015 13:15:55 +0000 (-0400) Subject: ncpfs: successful rename() should invalidate caches for parents X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3f4a9494104cbadfa05cb2da9ca04b205712360f;p=openwrt%2Fstaging%2Fblogic.git ncpfs: successful rename() should invalidate caches for parents Signed-off-by: Al Viro --- diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index 80021c709af9..93575e91a7aa 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c @@ -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;