Skip to contentSkip to conversation

[2.4] reiserfs: Enable tail packing]

BK Hans Reiser 1 participant 1 message May 3, 2003

lore
Share & tools
lore
#0 lore raw
Signature · 2 lines
-- 
Hans

Hello!

This patch restores the tail packing fucntionality that was mistakenly disabled by previously accepted directio fix patch.

Please pull from bk://namesys.com/bk/reiser3-linux-2.4-tailfix

Diffstat:

 inode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Plain text patch:

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1158 -> 1.1159
# fs/reiserfs/inode.c 1.42 -> 1.43
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/03 [email protected] 1.1159
# reiserfs: One of the O_DIRECT fixes disabled tail packing by mistake. Enable it again. # --------------------------------------------
#

fs/reiserfs/inode.c +2 -2
diff -Nru a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
@@ -2085,8 +2085,8 @@
 	/* If the file have grown beyond the border where it
 	   can have a tail, unmark it as needing a tail
 	   packing */
-	if ( (have_large_tails (inode->i_sb) && inode->i_size < block_size (inode)*4) ||
-	     (have_small_tails (inode->i_sb) && inode->i_size < block_size(inode)) )
+	if ( (have_large_tails (inode->i_sb) && inode->i_size > block_size (inode)*4) ||
+	     (have_small_tails (inode->i_sb) && inode->i_size > block_size(inode)) )
 	    inode->u.reiserfs_i.i_flags &= ~i_pack_on_close_mask;
 
 	journal_begin(&th, inode->i_sb, 1) ;