Mercurial > yaffs-ecoscentric-gpl
changeset 88:0f3625990b22
Fix problem introduced my mv over fix
| author | charles <charles> |
|---|---|
| date | Wed, 21 Sep 2005 01:14:03 +0000 |
| parents | bf06ca99ff37 |
| children | b4b0f79124e4 |
| files | yaffs_fs.c |
| diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -31,7 +31,7 @@ */ const char *yaffs_fs_c_version = - "$Id: yaffs_fs.c,v 1.30 2005-09-20 05:22:43 charles Exp $"; + "$Id: yaffs_fs.c,v 1.31 2005-09-21 01:14:03 charles Exp $"; extern const char *yaffs_guts_c_version; #include <linux/config.h> @@ -1133,8 +1133,10 @@ static int yaffs_rename(struct inode *ol yaffs_GrossUnlock(dev); if (retVal == YAFFS_OK) { - new_dentry->d_inode->i_nlink--; - mark_inode_dirty(new_dentry->d_inode); + if(target) { + new_dentry->d_inode->i_nlink--; + mark_inode_dirty(new_dentry->d_inode); + } return 0; } else {
