diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-06 20:48:25 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-08 16:00:44 -0500 |
commit | 8b31dfb3500fc642ccd36f0aaa0c3ab1b54abb1c (patch) | |
tree | 6144105d041efc511d5797a106feff718e1fba55 /libbcachefs/disk_accounting.h | |
parent | 2aeeac7785d647c02ef5612795025f3c9ce436ec (diff) |
Update bcachefs sources to 55a65a994ed5 bcachefs: bcachefs_metadata_version_persistent_inode_cursors
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/disk_accounting.h')
-rw-r--r-- | libbcachefs/disk_accounting.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/disk_accounting.h b/libbcachefs/disk_accounting.h index cb20f723..4a3d9ff8 100644 --- a/libbcachefs/disk_accounting.h +++ b/libbcachefs/disk_accounting.h @@ -120,7 +120,8 @@ void bch2_accounting_mem_gc(struct bch_fs *); static inline bool bch2_accounting_is_mem(struct disk_accounting_pos acc) { - return acc.type != BCH_DISK_ACCOUNTING_inum; + return acc.type < BCH_DISK_ACCOUNTING_TYPE_NR && + acc.type != BCH_DISK_ACCOUNTING_inum; } /* |