projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a4bfc
)
nilfs2: do not update mount time on rw->ro remount
author
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Sun, 27 Jun 2010 12:38:05 +0000
(21:38 +0900)
committer
Ryusuke Konishi
<konishi.ryusuke@lab.ntt.co.jp>
Fri, 23 Jul 2010 01:02:10 +0000
(10:02 +0900)
Mount time field in super block is wrongly updated when nilfs remounts
the partition from read-write to read-only. This fixes the issue.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/super.c
patch
|
blob
|
history
diff --git
a/fs/nilfs2/super.c
b/fs/nilfs2/super.c
index 414ef68931cf48dc0443892cae12bcab91262660..39b28cf3cf8ed1c302e3945f1ddc79529ad0e161 100644
(file)
--- a/
fs/nilfs2/super.c
+++ b/
fs/nilfs2/super.c
@@
-884,7
+884,6
@@
static int nilfs_remount(struct super_block *sb, int *flags, char *data)
if (!(sbp->s_state & le16_to_cpu(NILFS_VALID_FS)) &&
(nilfs->ns_mount_state & NILFS_VALID_FS))
sbp->s_state = cpu_to_le16(nilfs->ns_mount_state);
- sbp->s_mtime = cpu_to_le64(get_seconds());
nilfs_commit_super(sbi, 1);
up_write(&nilfs->ns_sem);
} else {