mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-20 06:06:48 +00:00
scoutfs: Tidy some enum usage
Prefer named to anonymous enums. This helps readability a little. Use enum as param type if possible (a couple spots). Remove unused enum in lock_server.c. Define enum spbm_flags using shift notation for consistency. Rename get_file_block()'s "gfb" parameter to "flags" for consistency. Signed-off-by: Andy Grover <agrover@versity.com>
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ struct block_info {
|
||||
#define DECLARE_BLOCK_INFO(sb, name) \
|
||||
struct block_info *name = SCOUTFS_SB(sb)->block_info
|
||||
|
||||
enum {
|
||||
enum block_status_bits {
|
||||
BLOCK_BIT_UPTODATE = 0, /* contents consistent with media */
|
||||
BLOCK_BIT_NEW, /* newly allocated, contents undefined */
|
||||
BLOCK_BIT_DIRTY, /* dirty, writer will write */
|
||||
|
||||
Reference in New Issue
Block a user