lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 18 Jan 2022 21:12:04 +0800 From: Jeffle Xu <jefflexu@...ux.alibaba.com> To: dhowells@...hat.com, linux-cachefs@...hat.com, xiang@...nel.org, chao@...nel.org, linux-erofs@...ts.ozlabs.org Cc: linux-fsdevel@...r.kernel.org, joseph.qi@...ux.alibaba.com, bo.liu@...ux.alibaba.com, tao.peng@...ux.alibaba.com, gerry@...ux.alibaba.com, eguan@...ux.alibaba.com, linux-kernel@...r.kernel.org Subject: [PATCH v2 08/20] erofs: export erofs_map_blocks() ... so that it can be used in the following introduced fs/erofs/fscache.c. Signed-off-by: Jeffle Xu <jefflexu@...ux.alibaba.com> --- fs/erofs/data.c | 4 ++-- fs/erofs/internal.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/erofs/data.c b/fs/erofs/data.c index fa7ddb7ad980..f3aa133866e5 100644 --- a/fs/erofs/data.c +++ b/fs/erofs/data.c @@ -104,8 +104,8 @@ static int erofs_map_blocks_flatmode(struct inode *inode, return 0; } -static int erofs_map_blocks(struct inode *inode, - struct erofs_map_blocks *map, int flags) +int erofs_map_blocks(struct inode *inode, + struct erofs_map_blocks *map, int flags) { struct super_block *sb = inode->i_sb; struct erofs_inode *vi = EROFS_I(inode); diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index b8272fb95fd6..f9f94d63d40f 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -484,6 +484,8 @@ void *erofs_read_metabuf(struct erofs_buf *buf, struct super_block *sb, int erofs_map_dev(struct super_block *sb, struct erofs_map_dev *dev); int erofs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len); +int erofs_map_blocks(struct inode *inode, + struct erofs_map_blocks *map, int flags); /* inode.c */ static inline unsigned long erofs_inode_hash(erofs_nid_t nid) -- 2.27.0
Powered by blists - more mailing lists