nilfs2: mark S_NOATIME on inodes only if NOATIME attribute is set
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Wed, 19 Jan 2011 17:09:52 +0000 (02:09 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Tue, 8 Mar 2011 05:58:29 +0000 (14:58 +0900)
commit32f4aeb31583a85c1e9a5d6d485055c090cebbfb
treeb0b0d53b9f12ea00d77d1b3f65a5c03be43ae026
parentf0c9f242f947a37675a883deca7f722cac935b0e
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>
fs/nilfs2/inode.c