[Ocfs2-commits] mfasheh commits r2740 - branches/ocfs2-1.2/fs/ocfs2
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Wed Dec 28 15:46:03 CST 2005
Author: mfasheh
Signed-off-by: jlbec
Signed-off-by: smushran
Date: 2005-12-28 15:46:02 -0600 (Wed, 28 Dec 2005)
New Revision: 2740
Modified:
branches/ocfs2-1.2/fs/ocfs2/dlmglue.c
Log:
* ocfs2_refresh_inode_from_lvb() was not updating ip_mmu_private anymore,
fix this.
Signed-off-by: jlbec
Signed-off-by: smushran
Modified: branches/ocfs2-1.2/fs/ocfs2/dlmglue.c
===================================================================
--- branches/ocfs2-1.2/fs/ocfs2/dlmglue.c 2005-12-19 19:07:49 UTC (rev 2739)
+++ branches/ocfs2-1.2/fs/ocfs2/dlmglue.c 2005-12-28 21:46:02 UTC (rev 2740)
@@ -1283,6 +1283,9 @@
oi->ip_clusters = be32_to_cpu(lvb->lvb_iclusters);
i_size_write(inode, be64_to_cpu(lvb->lvb_isize));
+ if (S_ISREG(inode->i_mode))
+ oi->ip_mmu_private = i_size_read(inode);
+
/* fast-symlinks are a special case */
if (S_ISLNK(inode->i_mode) && !oi->ip_clusters)
inode->i_blocks = 0;
More information about the Ocfs2-commits
mailing list