diff options
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/the_nilfs.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/nilfs2/the_nilfs.h b/fs/nilfs2/the_nilfs.h index 06d2548d436d..79369fd6b13b 100644 --- a/fs/nilfs2/the_nilfs.h +++ b/fs/nilfs2/the_nilfs.h | |||
@@ -222,15 +222,14 @@ THE_NILFS_FNS(SB_DIRTY, sb_dirty) | |||
222 | * Mount option operations | 222 | * Mount option operations |
223 | */ | 223 | */ |
224 | #define nilfs_clear_opt(nilfs, opt) \ | 224 | #define nilfs_clear_opt(nilfs, opt) \ |
225 | do { (nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt; } while (0) | 225 | ((nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt) |
226 | #define nilfs_set_opt(nilfs, opt) \ | 226 | #define nilfs_set_opt(nilfs, opt) \ |
227 | do { (nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt; } while (0) | 227 | ((nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt) |
228 | #define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt) | 228 | #define nilfs_test_opt(nilfs, opt) ((nilfs)->ns_mount_opt & NILFS_MOUNT_##opt) |
229 | #define nilfs_write_opt(nilfs, mask, opt) \ | 229 | #define nilfs_write_opt(nilfs, mask, opt) \ |
230 | do { (nilfs)->ns_mount_opt = \ | 230 | ((nilfs)->ns_mount_opt = \ |
231 | (((nilfs)->ns_mount_opt & ~NILFS_MOUNT_##mask) | \ | 231 | (((nilfs)->ns_mount_opt & ~NILFS_MOUNT_##mask) | \ |
232 | NILFS_MOUNT_##opt); \ | 232 | NILFS_MOUNT_##opt)) \ |
233 | } while (0) | ||
234 | 233 | ||
235 | /** | 234 | /** |
236 | * struct nilfs_root - nilfs root object | 235 | * struct nilfs_root - nilfs root object |