diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-01-19 12:09:52 -0500 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-03-08 00:58:29 -0500 |
commit | f0c9f242f947a37675a883deca7f722cac935b0e (patch) | |
tree | c0aad002f438b6d34123056d075da23792864327 /fs/nilfs2/inode.c | |
parent | 9954e7af14868b8b79e76b7b88daaf0b3866db33 (diff) |
nilfs2: use common file attribute macros
Replaces uses of own inode flags (i.e. NILFS_SECRM_FL, NILFS_UNRM_FL,
NILFS_COMPR_FL, and so forth) with common inode flags, and removes the
own flag declarations.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/inode.c')
-rw-r--r-- | fs/nilfs2/inode.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index 3a6967d14e1c..f61f80c7f7cc 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c | |||
@@ -317,9 +317,9 @@ struct inode *nilfs_new_inode(struct inode *dir, int mode) | |||
317 | 317 | ||
318 | ii->i_flags = NILFS_I(dir)->i_flags; | 318 | ii->i_flags = NILFS_I(dir)->i_flags; |
319 | if (S_ISLNK(mode)) | 319 | if (S_ISLNK(mode)) |
320 | ii->i_flags &= ~(NILFS_IMMUTABLE_FL | NILFS_APPEND_FL); | 320 | ii->i_flags &= ~(FS_IMMUTABLE_FL | FS_APPEND_FL); |
321 | if (!S_ISDIR(mode)) | 321 | if (!S_ISDIR(mode)) |
322 | ii->i_flags &= ~NILFS_DIRSYNC_FL; | 322 | ii->i_flags &= ~FS_DIRSYNC_FL; |
323 | 323 | ||
324 | /* ii->i_file_acl = 0; */ | 324 | /* ii->i_file_acl = 0; */ |
325 | /* ii->i_dir_acl = 0; */ | 325 | /* ii->i_dir_acl = 0; */ |
@@ -359,17 +359,17 @@ void nilfs_set_inode_flags(struct inode *inode) | |||
359 | 359 | ||
360 | inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | S_NOATIME | | 360 | inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | S_NOATIME | |
361 | S_DIRSYNC); | 361 | S_DIRSYNC); |
362 | if (flags & NILFS_SYNC_FL) | 362 | if (flags & FS_SYNC_FL) |
363 | inode->i_flags |= S_SYNC; | 363 | inode->i_flags |= S_SYNC; |
364 | if (flags & NILFS_APPEND_FL) | 364 | if (flags & FS_APPEND_FL) |
365 | inode->i_flags |= S_APPEND; | 365 | inode->i_flags |= S_APPEND; |
366 | if (flags & NILFS_IMMUTABLE_FL) | 366 | if (flags & FS_IMMUTABLE_FL) |
367 | inode->i_flags |= S_IMMUTABLE; | 367 | inode->i_flags |= S_IMMUTABLE; |
368 | #ifndef NILFS_ATIME_DISABLE | 368 | #ifndef NILFS_ATIME_DISABLE |
369 | if (flags & NILFS_NOATIME_FL) | 369 | if (flags & FS_NOATIME_FL) |
370 | #endif | 370 | #endif |
371 | inode->i_flags |= S_NOATIME; | 371 | inode->i_flags |= S_NOATIME; |
372 | if (flags & NILFS_DIRSYNC_FL) | 372 | if (flags & FS_DIRSYNC_FL) |
373 | inode->i_flags |= S_DIRSYNC; | 373 | inode->i_flags |= S_DIRSYNC; |
374 | mapping_set_gfp_mask(inode->i_mapping, | 374 | mapping_set_gfp_mask(inode->i_mapping, |
375 | mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS); | 375 | mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS); |