aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-08-09 19:52:30 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2007-08-09 20:27:58 -0400
commite0dceaf0a4b8c55076a4dbcba7ac8b05755f5cc6 (patch)
treeb580fe81cd6b7765db0eb3dc6d42fcd7c2b1676d /fs/ocfs2
parentce17204ae633001ef41318d487282730e96b9522 (diff)
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 <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index c3c89e26567c..f2fc9a795deb 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1291,6 +1291,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
1291 sb->s_fs_info = osb; 1291 sb->s_fs_info = osb;
1292 sb->s_op = &ocfs2_sops; 1292 sb->s_op = &ocfs2_sops;
1293 sb->s_export_op = &ocfs2_export_ops; 1293 sb->s_export_op = &ocfs2_export_ops;
1294 sb->s_time_gran = 1;
1294 sb->s_flags |= MS_NOATIME; 1295 sb->s_flags |= MS_NOATIME;
1295 /* this is needed to support O_LARGEFILE */ 1296 /* this is needed to support O_LARGEFILE */
1296 cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits); 1297 cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits);