summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTetsuhiro Kohada <kohada.t2@gmail.com>2020-09-11 13:45:06 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2020-10-22 08:29:12 +0900
commiteae503f7eb0509594076a951e422e29082385c96 (patch)
tree24be5516603b13088b4c242f2b166257b69114aa /fs
parent04cee52fb8bdbdb0506460f191ed6fd9e6faf00b (diff)
downloadlwn-eae503f7eb0509594076a951e422e29082385c96.tar.gz
lwn-eae503f7eb0509594076a951e422e29082385c96.zip
exfat: remove useless check in exfat_move_file()
In exfat_move_file(), the identity of source and target directory has been checked by the caller. Also, it gets stream.start_clu from file dir-entry, which is an invalid determination. Signed-off-by: Tetsuhiro Kohada <kohada.t2@gmail.com> Acked-by: Sungjong Seo <sj1557.seo@samsung.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/exfat/namei.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c
index 676094f2abe2..2932b23a3b6c 100644
--- a/fs/exfat/namei.c
+++ b/fs/exfat/namei.c
@@ -1094,11 +1094,6 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir,
if (!epmov)
return -EIO;
- /* check if the source and target directory is the same */
- if (exfat_get_entry_type(epmov) == TYPE_DIR &&
- le32_to_cpu(epmov->dentry.stream.start_clu) == p_newdir->dir)
- return -EINVAL;
-
num_old_entries = exfat_count_ext_entries(sb, p_olddir, oldentry,
epmov);
if (num_old_entries < 0)