diff options
-rw-r--r-- | fs/minix/namei.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/minix/namei.c b/fs/minix/namei.c index 382ead96bf54..b99696b90b42 100644 --- a/fs/minix/namei.c +++ b/fs/minix/namei.c @@ -230,7 +230,10 @@ static int minix_rename(struct user_namespace *mnt_userns, inode_inc_link_count(new_dir); } - minix_delete_entry(old_de, old_page); + err = minix_delete_entry(old_de, old_page); + if (err) + goto out_dir; + mark_inode_dirty(old_inode); if (dir_de) { |