[Ocfs2-commits] mfasheh commits r2741 - branches/ocfs2-1.0/fs/ocfs2
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Wed Dec 28 15:47:17 CST 2005
Author: mfasheh
Signed-off-by: smushran
Date: 2005-12-28 15:47:16 -0600 (Wed, 28 Dec 2005)
New Revision: 2741
Modified:
branches/ocfs2-1.0/fs/ocfs2/dlmglue.c
Log:
* backport svn r2740 from the 1.2 branch:
- ocfs2_refresh_inode_from_lvb() was not updating ip_mmu_private
Signed-off-by: smushran
Modified: branches/ocfs2-1.0/fs/ocfs2/dlmglue.c
===================================================================
--- branches/ocfs2-1.0/fs/ocfs2/dlmglue.c 2005-12-28 21:46:02 UTC (rev 2740)
+++ branches/ocfs2-1.0/fs/ocfs2/dlmglue.c 2005-12-28 21:47:16 UTC (rev 2741)
@@ -1279,6 +1279,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