(vfs_s_super::want_stale): change type from int to gboolean.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-01-08 11:23:10 +03:00
parent f1d9b67bb5
commit a514ce6d13
2 changed files with 3 additions and 3 deletions

View File

@ -776,10 +776,10 @@ vfs_s_setctl (const vfs_path_t * vpath, int ctlop, void *arg)
if (ino == NULL) if (ino == NULL)
return 0; return 0;
if (arg != NULL) if (arg != NULL)
ino->super->want_stale = 1; ino->super->want_stale = TRUE;
else else
{ {
ino->super->want_stale = 0; ino->super->want_stale = FALSE;
vfs_s_invalidate (path_element->class, ino->super); vfs_s_invalidate (path_element->class, ino->super);
} }
return 1; return 1;

View File

@ -66,7 +66,7 @@ struct vfs_s_super
char *name; /* My name, whatever it means */ char *name; /* My name, whatever it means */
int fd_usage; /* Number of open files */ int fd_usage; /* Number of open files */
int ino_usage; /* Usage count of this superblock */ int ino_usage; /* Usage count of this superblock */
int want_stale; /* If set, we do not flush cache properly */ gboolean want_stale; /* If set, we do not flush cache properly */
#ifdef ENABLE_VFS_NET #ifdef ENABLE_VFS_NET
vfs_path_element_t *path_element; vfs_path_element_t *path_element;
#endif /* ENABLE_VFS_NET */ #endif /* ENABLE_VFS_NET */