diff options
Diffstat (limited to 'fs/msdos')
-rw-r--r-- | fs/msdos/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/msdos/namei.c b/fs/msdos/namei.c index fa868c755907..b0f01b3b0536 100644 --- a/fs/msdos/namei.c +++ b/fs/msdos/namei.c | |||
@@ -345,7 +345,7 @@ static int msdos_rmdir(struct inode *dir, struct dentry *dentry) | |||
345 | goto out; | 345 | goto out; |
346 | drop_nlink(dir); | 346 | drop_nlink(dir); |
347 | 347 | ||
348 | inode->i_nlink = 0; | 348 | clear_nlink(inode); |
349 | inode->i_ctime = CURRENT_TIME_SEC; | 349 | inode->i_ctime = CURRENT_TIME_SEC; |
350 | fat_detach(inode); | 350 | fat_detach(inode); |
351 | out: | 351 | out: |
@@ -430,7 +430,7 @@ static int msdos_unlink(struct inode *dir, struct dentry *dentry) | |||
430 | err = fat_remove_entries(dir, &sinfo); /* and releases bh */ | 430 | err = fat_remove_entries(dir, &sinfo); /* and releases bh */ |
431 | if (err) | 431 | if (err) |
432 | goto out; | 432 | goto out; |
433 | inode->i_nlink = 0; | 433 | clear_nlink(inode); |
434 | inode->i_ctime = CURRENT_TIME_SEC; | 434 | inode->i_ctime = CURRENT_TIME_SEC; |
435 | fat_detach(inode); | 435 | fat_detach(inode); |
436 | out: | 436 | out: |