diff options
author | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-02-04 17:30:35 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-02-15 08:11:24 +0800 |
commit | 4efdec36dc9907628e590a68193d6d8e5e74d032 (patch) | |
tree | 5801ed92e18c7a2b1d7c311da3a9d7138865d35a /fs/erofs/internal.h | |
parent | b780d3fc6107464dcc43631a6208c43b6421f1e6 (diff) |
erofs: get rid of erofs_inode_datablocks()
erofs_inode_datablocks() has the only one caller, let's just get
rid of it entirely. No logic changes.
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230204093040.97967-1-hsiangkao@linux.alibaba.com
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r-- | fs/erofs/internal.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index 08ba817d6551..c18af21ba9c4 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -344,12 +344,6 @@ static inline erofs_off_t erofs_iloc(struct inode *inode) (EROFS_I(inode)->nid << sbi->islotbits); } -static inline unsigned long erofs_inode_datablocks(struct inode *inode) -{ - /* since i_size cannot be changed */ - return DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); -} - static inline unsigned int erofs_bitrange(unsigned int value, unsigned int bit, unsigned int bits) { |