summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2023-01-09 11:47:34 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2023-01-31 10:47:44 -0800
commit71a298ca208e48bd69e1bf61a22a762624885093 (patch)
tree7c42332ed33d6b2248464e5208b8c164e6aa9f2e /fs/f2fs
parent0e8d040bfa4c476d7d2a23119527c744c7de13cd (diff)
downloadlinux-stable-71a298ca208e48bd69e1bf61a22a762624885093.tar.gz
linux-stable-71a298ca208e48bd69e1bf61a22a762624885093.tar.bz2
linux-stable-71a298ca208e48bd69e1bf61a22a762624885093.zip
f2fs: remove unneeded f2fs_cp_error() in f2fs_create_whiteout()
f2fs_rename() has checked CP_ERROR_FLAG, so remove redundant check in f2fs_create_whiteout(). Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/namei.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 6032589099ce..82923273f4bb 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -926,9 +926,6 @@ static int f2fs_tmpfile(struct user_namespace *mnt_userns, struct inode *dir,
static int f2fs_create_whiteout(struct user_namespace *mnt_userns,
struct inode *dir, struct inode **whiteout)
{
- if (unlikely(f2fs_cp_error(F2FS_I_SB(dir))))
- return -EIO;
-
return __f2fs_tmpfile(mnt_userns, dir, NULL,
S_IFCHR | WHITEOUT_MODE, true, whiteout);
}