mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-15 05:43:39 +08:00
Avoid redefined ALIGN_UP
This tries to avoid build warning. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
1edc138ae7
commit
3fd996cc16
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user