From dbc68dff8e8a7d6de65734a72f25e9927b0857ed Mon Sep 17 00:00:00 2001 From: Mark Fasheh Date: Thu, 9 Aug 2007 16:52:30 -0700 Subject: ocfs2: set non-default s_time_gran during mount We need to manually set this to '1' during mount, otherwise inode_setattr() will chop off the nanosecond portion of our timestamps. Signed-off-by: Mark Fasheh --- fs/ocfs2/super.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index aa5fa4a..07a4579 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1274,6 +1274,7 @@ static int ocfs2_initialize_super(struct super_block *sb, sb->s_fs_info = osb; sb->s_op = &ocfs2_sops; sb->s_export_op = &ocfs2_export_ops; + sb->s_time_gran = 1; sb->s_flags |= MS_NOATIME; /* this is needed to support O_LARGEFILE */ cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits); -- 1.5.3.4