Avoid redefined ALIGN_UP

This tries to avoid build warning.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2021-08-23 11:38:23 -07:00
parent 1edc138ae7
commit 3fd996cc16
2 changed files with 2 additions and 4 deletions

View File

@ -437,8 +437,8 @@ typedef struct {
filter_ops *filter_ops; /* filter ops */
} compress_config_t;
#define ALIGN_UP(value, size) ((value) + ((value) % (size) > 0 ? \
(size) - (value) % (size) : 0))
#define ALIGN_DOWN(addrs, size) (((addrs) / (size)) * (size))
#define ALIGN_UP(addrs, size) ALIGN_DOWN(((addrs) + (size) - 1), (size))
struct f2fs_configuration {
u_int32_t reserved_segments;

View File

@ -499,8 +499,6 @@ opaque_seq:
return __f2fs_dentry_hash(name, len);
}
#define ALIGN_DOWN(addrs, size) (((addrs) / (size)) * (size))
#define ALIGN_UP(addrs, size) ALIGN_DOWN(((addrs) + (size) - 1), (size))
unsigned int addrs_per_inode(struct f2fs_inode *i)
{
unsigned int addrs = CUR_ADDRS_PER_INODE(i) - get_inline_xattr_addrs(i);