]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
erofs: add erofs_inode_set_aops helper to set the aops
authorHongbo Li <lihongbo22@huawei.com>
Fri, 23 Jan 2026 07:52:39 +0000 (07:52 +0000)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 23 Jan 2026 12:01:39 +0000 (20:01 +0800)
commit78331814a502b6b27ccf57dcd09801d2b48709e1
tree384e64a35d5eeffa80aa45f886791a91fbcb5ba0
parente0bf7d1c074dc4252223ae897560345ccc24100d
erofs: add erofs_inode_set_aops helper to set the aops

Add erofs_inode_set_aops helper to set the inode->i_mapping->a_ops
and use IS_ENABLED to make it cleaner.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/inode.c
fs/erofs/internal.h