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 | 32f4aeb31583a85c1e9a5d6d485055c090cebbfb (patch) | |
tree | b0b0d53b9f12ea00d77d1b3f65a5c03be43ae026 /fs/nilfs2/inode.c | |
parent | f0c9f242f947a37675a883deca7f722cac935b0e (diff) |
nilfs2: mark S_NOATIME on inodes only if NOATIME attribute is set
At present, nilfs marks S_NOATIME flag on all inodes. This restricts
nilfs_set_inode_flags function so that it marks S_NOATIME only if a
given inode has an FS_NOATIME_FL flag.
Although nilfs does not support atime yet, touch_atime() still safely
returns on IS_NOATIME check since MS_NOATIME is always set on sb.
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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index f61f80c7f7cc..2e6ac8e9203a 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c | |||
@@ -365,9 +365,7 @@ void nilfs_set_inode_flags(struct inode *inode) | |||
365 | inode->i_flags |= S_APPEND; | 365 | inode->i_flags |= S_APPEND; |
366 | if (flags & FS_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 | ||
369 | if (flags & FS_NOATIME_FL) | 368 | if (flags & FS_NOATIME_FL) |
370 | #endif | ||
371 | inode->i_flags |= S_NOATIME; | 369 | inode->i_flags |= S_NOATIME; |
372 | if (flags & FS_DIRSYNC_FL) | 370 | if (flags & FS_DIRSYNC_FL) |
373 | inode->i_flags |= S_DIRSYNC; | 371 | inode->i_flags |= S_DIRSYNC; |