Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1612031 > unrolled thread

[PATCH] ubifs: Don't block RENAME_WHITEOUT flag in rename

Started byJesper Nilsson <jesper.nilsson@axis.com>
First post2017-03-29 17:20 +0200
Last post2017-03-29 17:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] ubifs: Don't block RENAME_WHITEOUT flag in rename Jesper Nilsson <jesper.nilsson@axis.com> - 2017-03-29 17:20 +0200

#1612031 — [PATCH] ubifs: Don't block RENAME_WHITEOUT flag in rename

FromJesper Nilsson <jesper.nilsson@axis.com>
Date2017-03-29 17:20 +0200
Subject[PATCH] ubifs: Don't block RENAME_WHITEOUT flag in rename
Message-ID<tqnya-ea-15@gated-at.bofh.it>
The test does not allow the valid flag RENAME_WHITEOUT
and in fact, the calling function of do_rename already tests
the flags, so the test is unnecessary, allowing us to drop
it completely.

With this patch RENAME_WHITEOUT for overlayfs on ubifs works
as intended.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
---
 fs/ubifs/dir.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c
index 30825d88..01ab543 100644
--- a/fs/ubifs/dir.c
+++ b/fs/ubifs/dir.c
@@ -1316,9 +1316,6 @@ static int do_rename(struct inode *old_dir, struct dentry *old_dentry,
 	unsigned int uninitialized_var(saved_nlink);
 	struct fscrypt_name old_nm, new_nm;
 
-	if (flags & ~RENAME_NOREPLACE)
-		return -EINVAL;
-
 	/*
 	 * Budget request settings: deletion direntry, new direntry, removing
 	 * the old inode, and changing old and new parent directory inodes.
-- 
2.1.4


/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson@axis.com

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web