diff options
Diffstat (limited to 'fs/vfat/namei.c')
-rw-r--r-- | fs/vfat/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/vfat/namei.c b/fs/vfat/namei.c index 5846ba2d5d9f..edb711ff7b05 100644 --- a/fs/vfat/namei.c +++ b/fs/vfat/namei.c | |||
@@ -784,7 +784,7 @@ static int vfat_rmdir(struct inode *dir, struct dentry *dentry) | |||
784 | goto out; | 784 | goto out; |
785 | drop_nlink(dir); | 785 | drop_nlink(dir); |
786 | 786 | ||
787 | inode->i_nlink = 0; | 787 | clear_nlink(inode); |
788 | inode->i_mtime = inode->i_atime = CURRENT_TIME_SEC; | 788 | inode->i_mtime = inode->i_atime = CURRENT_TIME_SEC; |
789 | fat_detach(inode); | 789 | fat_detach(inode); |
790 | out: | 790 | out: |
@@ -808,7 +808,7 @@ static int vfat_unlink(struct inode *dir, struct dentry *dentry) | |||
808 | err = fat_remove_entries(dir, &sinfo); /* and releases bh */ | 808 | err = fat_remove_entries(dir, &sinfo); /* and releases bh */ |
809 | if (err) | 809 | if (err) |
810 | goto out; | 810 | goto out; |
811 | inode->i_nlink = 0; | 811 | clear_nlink(inode); |
812 | inode->i_mtime = inode->i_atime = CURRENT_TIME_SEC; | 812 | inode->i_mtime = inode->i_atime = CURRENT_TIME_SEC; |
813 | fat_detach(inode); | 813 | fat_detach(inode); |
814 | out: | 814 | out: |