]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/linux/f2fs_fs.h
f2fs: compress: add compress_inode to cache compressed blocks
[mirror_ubuntu-jammy-kernel.git] / include / linux / f2fs_fs.h
index 5487a80617a304811d860b80ad4e860fb0598419..d445150c5350fa4698be486f80fa3205a98ac31d 100644 (file)
@@ -34,6 +34,7 @@
 #define F2FS_ROOT_INO(sbi)     ((sbi)->root_ino_num)
 #define F2FS_NODE_INO(sbi)     ((sbi)->node_ino_num)
 #define F2FS_META_INO(sbi)     ((sbi)->meta_ino_num)
+#define F2FS_COMPRESS_INO(sbi) (NM_I(sbi)->max_nid)
 
 #define F2FS_MAX_QUOTAS                3
 
@@ -229,6 +230,7 @@ struct f2fs_extent {
 #define F2FS_INLINE_DOTS       0x10    /* file having implicit dot dentries */
 #define F2FS_EXTRA_ATTR                0x20    /* file having extra attribute */
 #define F2FS_PIN_FILE          0x40    /* file should not be gced */
+#define F2FS_COMPRESS_RELEASED 0x80    /* file released compressed blocks */
 
 struct f2fs_inode {
        __le16 i_mode;                  /* file mode */