zonefs.h (762f99f4f3cb41a775b5157dd761217beba65873) | zonefs.h (2b95a23c4f50c42fe85f0d345612075d0f2c3118) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Simple zone file system for zoned block devices. 4 * 5 * Copyright (C) 2019 Western Digital Corporation or its affiliates. 6 */ 7#ifndef __ZONEFS_H__ 8#define __ZONEFS_H__ --- 168 unchanged lines hidden (view full) --- 177 uuid_t s_uuid; 178 unsigned int s_zone_sectors_shift; 179 180 unsigned int s_nr_files[ZONEFS_ZTYPE_MAX]; 181 182 loff_t s_blocks; 183 loff_t s_used_blocks; 184 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Simple zone file system for zoned block devices. 4 * 5 * Copyright (C) 2019 Western Digital Corporation or its affiliates. 6 */ 7#ifndef __ZONEFS_H__ 8#define __ZONEFS_H__ --- 168 unchanged lines hidden (view full) --- 177 uuid_t s_uuid; 178 unsigned int s_zone_sectors_shift; 179 180 unsigned int s_nr_files[ZONEFS_ZTYPE_MAX]; 181 182 loff_t s_blocks; 183 loff_t s_used_blocks; 184 |
185 unsigned int s_max_open_zones; 186 atomic_t s_open_zones; | 185 unsigned int s_max_wro_seq_files; 186 atomic_t s_wro_seq_files; |
187}; 188 189static inline struct zonefs_sb_info *ZONEFS_SB(struct super_block *sb) 190{ 191 return sb->s_fs_info; 192} 193 194#define zonefs_info(sb, format, args...) \ 195 pr_info("zonefs (%s): " format, sb->s_id, ## args) 196#define zonefs_err(sb, format, args...) \ 197 pr_err("zonefs (%s) ERROR: " format, sb->s_id, ## args) 198#define zonefs_warn(sb, format, args...) \ 199 pr_warn("zonefs (%s) WARNING: " format, sb->s_id, ## args) 200 201#endif | 187}; 188 189static inline struct zonefs_sb_info *ZONEFS_SB(struct super_block *sb) 190{ 191 return sb->s_fs_info; 192} 193 194#define zonefs_info(sb, format, args...) \ 195 pr_info("zonefs (%s): " format, sb->s_id, ## args) 196#define zonefs_err(sb, format, args...) \ 197 pr_err("zonefs (%s) ERROR: " format, sb->s_id, ## args) 198#define zonefs_warn(sb, format, args...) \ 199 pr_warn("zonefs (%s) WARNING: " format, sb->s_id, ## args) 200 201#endif |