projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
718693c
)
f2fs: remove the unnecessary check in f2fs_xattr_fiemap
author
Zhang Qilong
<zhangqilong3@huawei.com>
Fri, 23 Sep 2022 07:17:55 +0000
(15:17 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 4 Oct 2022 20:31:44 +0000
(13:31 -0700)
Whehter or not error occurs, checking "err == 1" is unnecessary
in f2fs_xattr_fiemap(), and just remove it here.
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index a45b6ab2e2a574a100ba5bf7b52cd31f964104cf..a921cd40db7858e0cb9e05ed09978ed2162af4ae 100644
(file)
--- a/
fs/f2fs/data.c
+++ b/
fs/f2fs/data.c
@@
-1816,7
+1816,7
@@
static int f2fs_xattr_fiemap(struct inode *inode,
err = fiemap_fill_next_extent(fieinfo, 0, phys, len, flags);
trace_f2fs_fiemap(inode, 0, phys, len, flags, err);
- if (err
|| err == 1
)
+ if (err)
return err;
}