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:
Andy Grover
2020-11-30 13:35:44 -08:00
committed by Zach Brown
parent 73333af364
commit cf278f5fa0
13 changed files with 25 additions and 31 deletions
+1 -1
View File
@@ -715,7 +715,7 @@ static void move_page_items(struct super_block *sb,
}
}
enum {
enum page_intersection_type {
PGI_DISJOINT,
PGI_INSIDE,
PGI_START_OLAP,