Skip to content

Commit

Permalink
Merge pull request torvalds#113 from Icarusradio/patch-1
Browse files Browse the repository at this point in the history
Fix a typo in `IS_DATABLOCKS_2MB_ALIGNED`
  • Loading branch information
Andiry authored Aug 29, 2021
2 parents b04a2c8 + 940d4c0 commit 593f927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nova/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ struct nova_range_node *nova_alloc_blocknode_atomic(struct super_block *sb)

#define PAGES_PER_2MB 512
#define PAGES_PER_2MB_MASK (512 - 1)
#define IS_DATABLOCKS_2MB_ALIGNED(numblocks, atype) \
#define IS_DATABLOCKS_2MB_ALIGNED(num_blocks, atype) \
(!(num_blocks & PAGES_PER_2MB_MASK) && (atype == DATA))

/* This method returns the number of blocks allocated. */
Expand Down

0 comments on commit 593f927

Please sign in to comment.