summaryrefslogtreecommitdiff
path: root/include/linux/f2fs_fs.h
diff options
context:
space:
mode:
authorYunlei He <heyunlei@huawei.com>2018-06-27 14:46:21 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-07-28 18:23:26 -0700
commite15d54d5009688ccb2a5312f3b70d631615329c9 (patch)
treef8e2e2554de500ce33417b413621519002fab722 /include/linux/f2fs_fs.h
parent9dc956b2c8523aed39d1e6508438be9fea28c8fc (diff)
downloadlinux-riscv-e15d54d5009688ccb2a5312f3b70d631615329c9.tar.gz
linux-riscv-e15d54d5009688ccb2a5312f3b70d631615329c9.tar.bz2
linux-riscv-e15d54d5009688ccb2a5312f3b70d631615329c9.zip
f2fs: Allocate and stat mem used by free nid bitmap more accurately
This patch used f2fs_bitmap_size macro to calculate mem used by free nid bitmap, and stat used mem including aligned part. Signed-off-by: Yunlei He <heyunlei@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/f2fs_fs.h')
-rw-r--r--include/linux/f2fs_fs.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index aa5db8b5521a..f70f8ac9c4f4 100644
--- a/include/linux/f2fs_fs.h
+++ b/include/linux/f2fs_fs.h
@@ -304,11 +304,6 @@ struct f2fs_node {
* For NAT entries
*/
#define NAT_ENTRY_PER_BLOCK (PAGE_SIZE / sizeof(struct f2fs_nat_entry))
-#define NAT_ENTRY_BITMAP_SIZE ((NAT_ENTRY_PER_BLOCK + 7) / 8)
-#define NAT_ENTRY_BITMAP_SIZE_ALIGNED \
- ((NAT_ENTRY_BITMAP_SIZE + BITS_PER_LONG - 1) / \
- BITS_PER_LONG * BITS_PER_LONG)
-
struct f2fs_nat_entry {
__u8 version; /* latest version of cached nat entry */