031-ubifs-fix-RENAME_WHITEOUT-support.patch 835 B

12345678910111213141516171819202122232425
  1. From: Felix Fietkau <[email protected]>
  2. Date: Mon, 6 Mar 2017 09:48:52 +0100
  3. Subject: [PATCH] ubifs: fix RENAME_WHITEOUT support
  4. Remove faulty leftover check in do_rename(), apparently introduced in a
  5. merge that combined whiteout support changes with commit f03b8ad8d386
  6. ("fs: support RENAME_NOREPLACE for local filesystems")
  7. Fixes: 9e0a1fff8db5 ("ubifs: Implement RENAME_WHITEOUT")
  8. Cc: [email protected]
  9. Signed-off-by: Felix Fietkau <[email protected]>
  10. ---
  11. --- a/fs/ubifs/dir.c
  12. +++ b/fs/ubifs/dir.c
  13. @@ -1088,9 +1088,6 @@ static int do_rename(struct inode *old_d
  14. struct timespec time;
  15. unsigned int uninitialized_var(saved_nlink);
  16. - if (flags & ~RENAME_NOREPLACE)
  17. - return -EINVAL;
  18. -
  19. /*
  20. * Budget request settings: deletion direntry, new direntry, removing
  21. * the old inode, and changing old and new parent directory inodes.