diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-04-14 01:10:36 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-29 01:41:28 +0300 |
commit | 76f105a2dbcd47509bac6ba8d94cb3759a3e6e9d (patch) | |
tree | 123117eb19f5c4b7b21ad8be6679e1b778c4b184 /fs/f2fs/f2fs.h | |
parent | b5492af78c89b52a8e7273445b2248b397a15333 (diff) | |
download | linux-76f105a2dbcd47509bac6ba8d94cb3759a3e6e9d.tar.xz |
f2fs: add feature facility in superblock
This patch introduces a feature in superblock, which will indicate any new
features for f2fs.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index cd9748af1b63..e1dd986262cb 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -70,6 +70,13 @@ struct f2fs_mount_info { unsigned int opt; }; +#define F2FS_HAS_FEATURE(sb, mask) \ + ((F2FS_SB(sb)->raw_super->feature & cpu_to_le32(mask)) != 0) +#define F2FS_SET_FEATURE(sb, mask) \ + F2FS_SB(sb)->raw_super->feature |= cpu_to_le32(mask) +#define F2FS_CLEAR_FEATURE(sb, mask) \ + F2FS_SB(sb)->raw_super->feature &= ~cpu_to_le32(mask) + #define CRCPOLY_LE 0xedb88320 static inline __u32 f2fs_crc32(void *buf, size_t len) |