Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c821080d authored by LiFan's avatar LiFan Committed by Jaegeuk Kim
Browse files

f2fs: remove a redundant conditional expression



Avoid checking is_inode repeatedly, and make the logic
a little bit clearer.

Signed-off-by: default avatarFan li <fanofcode.li@samsung.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 612e589b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2091,10 +2091,10 @@ static inline block_t datablock_addr(struct inode *inode,
	raw_node = F2FS_NODE(node_page);

	/* from GC path only */
	if (!inode) {
		if (is_inode)
	if (is_inode) {
		if (!inode)
			base = offset_in_addr(&raw_node->i);
	} else if (f2fs_has_extra_attr(inode) && is_inode) {
		else if (f2fs_has_extra_attr(inode))
			base = get_extra_isize(inode);
	}