Skip to content

Commit c3d9fda

Browse files
nbd168richardweinberger
authored andcommitted
ubifs: Fix RENAME_WHITEOUT support
Remove faulty leftover check in do_rename(), apparently introduced in a merge that combined whiteout support changes with commit f03b8ad ("fs: support RENAME_NOREPLACE for local filesystems") Fixes: f03b8ad ("fs: support RENAME_NOREPLACE for local filesystems") Fixes: 9e0a1ff ("ubifs: Implement RENAME_WHITEOUT") Cc: [email protected] Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 33fda9f commit c3d9fda

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/ubifs/dir.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,9 +1318,6 @@ static int do_rename(struct inode *old_dir, struct dentry *old_dentry,
13181318
unsigned int uninitialized_var(saved_nlink);
13191319
struct fscrypt_name old_nm, new_nm;
13201320

1321-
if (flags & ~RENAME_NOREPLACE)
1322-
return -EINVAL;
1323-
13241321
/*
13251322
* Budget request settings: deletion direntry, new direntry, removing
13261323
* the old inode, and changing old and new parent directory inodes.

0 commit comments

Comments
 (0)