]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
Merge branch 'for-linus' from kernel.org:/.../shaggy/jfs-2.6 manually
authorLinus Torvalds <torvalds@g5.osdl.org>
Sun, 11 Sep 2005 17:14:54 +0000 (10:14 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 11 Sep 2005 17:14:54 +0000 (10:14 -0700)
Clash due to new delete_inode behavior (the filesystem now needs to do
the truncate_inode_pages() call itself).

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1  2 
fs/jfs/inode.c

diff --cc fs/jfs/inode.c
index cff352f4ec18d357d856d7a8758611ad2a7774ab,37da3e33e7506a0b4be77135b35105b988b9f227..0ec62d5310db6a78128a948fd1370159caea0b09
@@@ -128,23 -128,21 +128,23 @@@ void jfs_delete_inode(struct inode *ino
  {
        jfs_info("In jfs_delete_inode, inode = 0x%p", inode);
  
-       if (is_bad_inode(inode) ||
-           (JFS_IP(inode)->fileset != cpu_to_le32(FILESYSTEM_I)))
-                       return;
+       if (!is_bad_inode(inode) &&
+           (JFS_IP(inode)->fileset == cpu_to_le32(FILESYSTEM_I))) {
  
-       truncate_inode_pages(&inode->i_data, 0);
++              truncate_inode_pages(&inode->i_data, 0);
 +
-       if (test_cflag(COMMIT_Freewmap, inode))
-               jfs_free_zero_link(inode);
+               if (test_cflag(COMMIT_Freewmap, inode))
+                       jfs_free_zero_link(inode);
  
-       diFree(inode);
+               diFree(inode);
  
-       /*
-        * Free the inode from the quota allocation.
-        */
-       DQUOT_INIT(inode);
-       DQUOT_FREE_INODE(inode);
-       DQUOT_DROP(inode);
+               /*
+                * Free the inode from the quota allocation.
+                */
+               DQUOT_INIT(inode);
+               DQUOT_FREE_INODE(inode);
+               DQUOT_DROP(inode);
+       }
  
        clear_inode(inode);
  }