fs: Fill in max and min timestamps in superblock
authorDeepa Dinamani <deepa.kernel@gmail.com>
Tue, 30 Jul 2019 15:22:29 +0000 (08:22 -0700)
committerDeepa Dinamani <deepa.kernel@gmail.com>
Fri, 30 Aug 2019 14:27:17 +0000 (07:27 -0700)
commit22b139691f9eb8b9d0bfd7341fa7436cb7a9491d
tree88aae8aa596da5e85b5628759d83601277b0cc72
parent42e729b9ddbbc40e5732f062ef2fa0554c652fb5
fs: Fill in max and min timestamps in superblock

Fill in the appropriate limits to avoid inconsistencies
in the vfs cached inode times when timestamps are
outside the permitted range.

Even though some filesystems are read-only, fill in the
timestamps to reflect the on-disk representation.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-By: Tigran Aivazian <aivazian.tigran@gmail.com>
Acked-by: Jeff Layton <jlayton@kernel.org>
Cc: aivazian.tigran@gmail.com
Cc: al@alarsen.net
Cc: coda@cs.cmu.edu
Cc: darrick.wong@oracle.com
Cc: dushistov@mail.ru
Cc: dwmw2@infradead.org
Cc: hch@infradead.org
Cc: jack@suse.com
Cc: jaharkes@cs.cmu.edu
Cc: luisbg@kernel.org
Cc: nico@fluxnic.net
Cc: phillip@squashfs.org.uk
Cc: richard@nod.at
Cc: salah.triki@gmail.com
Cc: shaggy@kernel.org
Cc: linux-xfs@vger.kernel.org
Cc: codalist@coda.cs.cmu.edu
Cc: linux-ext4@vger.kernel.org
Cc: linux-mtd@lists.infradead.org
Cc: jfs-discussion@lists.sourceforge.net
Cc: reiserfs-devel@vger.kernel.org
17 files changed:
fs/befs/linuxvfs.c
fs/bfs/inode.c
fs/coda/inode.c
fs/cramfs/inode.c
fs/efs/super.c
fs/ext2/super.c
fs/freevxfs/vxfs_super.c
fs/jffs2/fs.c
fs/jfs/super.c
fs/minix/inode.c
fs/qnx4/inode.c
fs/qnx6/inode.c
fs/reiserfs/super.c
fs/romfs/super.c
fs/squashfs/super.c
fs/ufs/super.c
fs/xfs/xfs_super.c