]> www.infradead.org Git - users/willy/xarray.git/commit
erofs: refactor read_inode calling convention
authorYiyang Wu <toolmanp@tlmp.cc>
Mon, 2 Sep 2024 09:34:12 +0000 (17:34 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 10 Sep 2024 07:27:11 +0000 (15:27 +0800)
commit53d514b970106976fd64f593ea13b55ebf26b3ff
treecabd5ab7994a422c546652d5b673fec818367382
parentb1bbb9a637a329873e14b596b7e6fa2fd44b87b4
erofs: refactor read_inode calling convention

Refactor out the iop binding behavior out of the erofs_fill_symlink
and move erofs_buf into the erofs_read_inode, so that erofs_fill_inode
can only deal with inode operation bindings and can be decoupled from
metabuf operations. This results in better calling conventions.

Note that after this patch, we do not need erofs_buf and ofs as
parameters any more when calling erofs_read_inode as
all the data operations are now included in itself.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/all/20240425222847.GN2118490@ZenIV/
Signed-off-by: Yiyang Wu <toolmanp@tlmp.cc>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20240902093412.509083-1-toolmanp@tlmp.cc
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/inode.c