patch-2.4.20 linux-2.4.20/fs/reiserfs/tail_conversion.c

Next file: linux-2.4.20/fs/reiserfs/version.c
Previous file: linux-2.4.20/fs/reiserfs/super.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/fs/reiserfs/tail_conversion.c linux-2.4.20/fs/reiserfs/tail_conversion.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999 Hans Reiser, see reiserfs/README for licensing and copyright details
+ * Copyright 1999-2002 Hans Reiser, see reiserfs/README for licensing and copyright details
  */
 
 #include <linux/config.h>
@@ -213,7 +213,7 @@
     copy_item_head (&s_ih, PATH_PITEM_HEAD(p_s_path));
 
     tail_len = (n_new_file_size & (n_block_size - 1));
-    if (!old_format_only (p_s_sb))
+    if (get_inode_sd_version (p_s_inode) == STAT_DATA_V2)
 	round_tail_len = ROUND_UP (tail_len);
     else
 	round_tail_len = tail_len;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)