diff options
author | Tiger Yang <tiger.yang@oracle.com> | 2011-03-02 06:32:09 -0500 |
---|---|---|
committer | Joel Becker <jlbec@evilplan.org> | 2011-05-24 02:37:12 -0400 |
commit | e2b0c215c2bd57693af69f7a430585109c02b07f (patch) | |
tree | 1b3197508edd4045267dfb1d71c46a3acf9ae1ec | |
parent | d762f4383100c2a87b1a3f2d678cd3b5425655b4 (diff) |
ocfs2: clean up mount option about atime in ocfs2.txt
As ocfs2 supports relatime and strictatime, we need update the
relative document. Atime_quantum need work with strictatime, so only
show it in procfs when mount with strictatime.
Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
-rw-r--r-- | Documentation/filesystems/ocfs2.txt | 8 | ||||
-rw-r--r-- | fs/ocfs2/super.c | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/filesystems/ocfs2.txt b/Documentation/filesystems/ocfs2.txt index 9ed920a8cd79..7618a287aa41 100644 --- a/Documentation/filesystems/ocfs2.txt +++ b/Documentation/filesystems/ocfs2.txt | |||
@@ -46,9 +46,15 @@ errors=panic Panic and halt the machine if an error occurs. | |||
46 | intr (*) Allow signals to interrupt cluster operations. | 46 | intr (*) Allow signals to interrupt cluster operations. |
47 | nointr Do not allow signals to interrupt cluster | 47 | nointr Do not allow signals to interrupt cluster |
48 | operations. | 48 | operations. |
49 | noatime Do not update access time. | ||
50 | relatime(*) Update atime if the previous atime is older than | ||
51 | mtime or ctime | ||
52 | strictatime Always update atime, but the minimum update interval | ||
53 | is specified by atime_quantum. | ||
49 | atime_quantum=60(*) OCFS2 will not update atime unless this number | 54 | atime_quantum=60(*) OCFS2 will not update atime unless this number |
50 | of seconds has passed since the last update. | 55 | of seconds has passed since the last update. |
51 | Set to zero to always update atime. | 56 | Set to zero to always update atime. This option need |
57 | work with strictatime. | ||
52 | data=ordered (*) All data are forced directly out to the main file | 58 | data=ordered (*) All data are forced directly out to the main file |
53 | system prior to its metadata being committed to the | 59 | system prior to its metadata being committed to the |
54 | journal. | 60 | journal. |
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 5a521c748859..823bc35334e0 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -1566,7 +1566,7 @@ static int ocfs2_show_options(struct seq_file *s, struct vfsmount *mnt) | |||
1566 | if (osb->preferred_slot != OCFS2_INVALID_SLOT) | 1566 | if (osb->preferred_slot != OCFS2_INVALID_SLOT) |
1567 | seq_printf(s, ",preferred_slot=%d", osb->preferred_slot); | 1567 | seq_printf(s, ",preferred_slot=%d", osb->preferred_slot); |
1568 | 1568 | ||
1569 | if (osb->s_atime_quantum != OCFS2_DEFAULT_ATIME_QUANTUM) | 1569 | if (!(mnt->mnt_flags & MNT_NOATIME) && !(mnt->mnt_flags & MNT_RELATIME)) |
1570 | seq_printf(s, ",atime_quantum=%u", osb->s_atime_quantum); | 1570 | seq_printf(s, ",atime_quantum=%u", osb->s_atime_quantum); |
1571 | 1571 | ||
1572 | if (osb->osb_commit_interval) | 1572 | if (osb->osb_commit_interval) |