2021-04-19 02:22:17

by Jiabing Wan

[permalink] [raw]
Subject: [PATCH] fs: f2fs: Remove unnecessary struct declaration

struct dnode_of_data is defined at 897th line.
The declaration here is unnecessary. Remove it.

Signed-off-by: Wan Jiabing <[email protected]>
---
fs/f2fs/f2fs.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index e2d302ae3a46..0757f9e50fd2 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -3299,7 +3299,6 @@ void f2fs_hash_filename(const struct inode *dir, struct f2fs_filename *fname);
/*
* node.c
*/
-struct dnode_of_data;
struct node_info;

int f2fs_check_nid_range(struct f2fs_sb_info *sbi, nid_t nid);
--
2.25.1


2021-04-19 06:45:51

by Chao Yu

[permalink] [raw]
Subject: Re: [f2fs-dev] [PATCH] fs: f2fs: Remove unnecessary struct declaration

On 2021/4/19 10:20, Wan Jiabing wrote:
> struct dnode_of_data is defined at 897th line.
> The declaration here is unnecessary. Remove it.
>
> Signed-off-by: Wan Jiabing <[email protected]>

Reviewed-by: Chao Yu <[email protected]>

Thanks,