diff options
Diffstat (limited to 'fs/xfs/xfs_rename.c')
| -rw-r--r-- | fs/xfs/xfs_rename.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/fs/xfs/xfs_rename.c b/fs/xfs/xfs_rename.c index d8063e1ad298..d700dacdb10e 100644 --- a/fs/xfs/xfs_rename.c +++ b/fs/xfs/xfs_rename.c | |||
| @@ -336,22 +336,18 @@ xfs_rename( | |||
| 336 | ASSERT(error != EEXIST); | 336 | ASSERT(error != EEXIST); |
| 337 | if (error) | 337 | if (error) |
| 338 | goto abort_return; | 338 | goto abort_return; |
| 339 | xfs_ichgtime(src_ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); | ||
| 340 | |||
| 341 | } else { | ||
| 342 | /* | ||
| 343 | * We always want to hit the ctime on the source inode. | ||
| 344 | * We do it in the if clause above for the 'new_parent && | ||
| 345 | * src_is_directory' case, and here we get all the other | ||
| 346 | * cases. This isn't strictly required by the standards | ||
| 347 | * since the source inode isn't really being changed, | ||
| 348 | * but old unix file systems did it and some incremental | ||
| 349 | * backup programs won't work without it. | ||
| 350 | */ | ||
| 351 | xfs_ichgtime(src_ip, XFS_ICHGTIME_CHG); | ||
| 352 | } | 339 | } |
| 353 | 340 | ||
| 354 | /* | 341 | /* |
| 342 | * We always want to hit the ctime on the source inode. | ||
| 343 | * | ||
| 344 | * This isn't strictly required by the standards since the source | ||
| 345 | * inode isn't really being changed, but old unix file systems did | ||
| 346 | * it and some incremental backup programs won't work without it. | ||
| 347 | */ | ||
| 348 | xfs_ichgtime(src_ip, XFS_ICHGTIME_CHG); | ||
| 349 | |||
| 350 | /* | ||
| 355 | * Adjust the link count on src_dp. This is necessary when | 351 | * Adjust the link count on src_dp. This is necessary when |
| 356 | * renaming a directory, either within one parent when | 352 | * renaming a directory, either within one parent when |
| 357 | * the target existed, or across two parent directories. | 353 | * the target existed, or across two parent directories. |
