Skip to contentSkip to conversation

updated 2.6 reiserfsv3 patch set

PATCH In review Chris Mason 3 participants 3 messages Mar 4, 2004 – Mar 5, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 updated 2.6 reiserfsv3 patch set

Hello everyone,

ftp.suse.com/pub/people/mason/patches/data-logging/experimental/2.6.3

Has updated patches for reiserfs v3. New in this set:

reiserfs-lock-lat-2 -- updated to give better latencies during a delete reiserfs-search-restart-2 -- better schedule detection reiserfs-write-sched-bug -- schedule detection fix reiserfs-jh-5 -- shouldn't hang during lilo anymore

The lilo fix for reiserfs-jh-5 is below as an incremental.

-chris

fs/reiserfs/ioctl.c +5 -2
Index: linux.t/fs/reiserfs/ioctl.c
===================================================================
@@ -92,6 +92,7 @@
     int retval = 0;
     int index ;
     struct page *page ;
+    struct address_space *mapping ;
     unsigned long write_from ;
     unsigned long blocksize = inode->i_sb->s_blocksize ;
     	
@@ -122,17 +123,19 @@
     ** reiserfs_get_block to unpack the tail for us.
     */
     index = inode->i_size >> PAGE_CACHE_SHIFT ;
-    page = grab_cache_page(inode->i_mapping, index) ;
+    mapping = inode->i_mapping ;
+    page = grab_cache_page(mapping, index) ;
     retval = -ENOMEM;
     if (!page) {
         goto out ;
     }
-    retval = reiserfs_prepare_write(NULL, page, write_from, blocksize) ;
+    retval = mapping->a_ops->prepare_write(NULL, page, write_from, write_from) ;
     if (retval)
         goto out_unlock ;
 
     /* conversion can change page contents, must flush */
     flush_dcache_page(page) ;
+    retval = mapping->a_ops->commit_write(NULL, page, write_from, write_from) ;
     REISERFS_I(inode)->i_flags |= i_nopack_mask;
 
 out_unlock:
#1 lore raw
Quoted 4 lines · Chris Mason

Hello everyone,

ftp.suse.com/pub/people/mason/patches/data-logging/experimental/2.6.3

Hi, your patches seem to do well, for me.
Installing a kernel is no fun iif lilo locks up ;-)
Note: I had no corruption with 2.6 + reiser3, so I cannot report anything
besides that it works.

Sometimes xmms produces choppy sound during the copy of a large file or the kernel tree, but it's doing much better than the earlier patches were. Preempt is enabled.

Signature · 1 line
lg, Chris
#2 lore raw
In reply to Chris Mason

Am Donnerstag, 4. März 2004 02:45 schrieb Chris Mason:

Quoted 4 lines

Hello everyone,

ftp.suse.com/pub/people/mason/patches/data-logging/experimental/2.6.3

Quoted 8 lines

Has updated patches for reiserfs v3. New in this set:

reiserfs-lock-lat-2 -- updated to give better latencies during a delete reiserfs-search-restart-2 -- better schedule detection reiserfs-write-sched-bug -- schedule detection fix reiserfs-jh-5 -- shouldn't hang during lilo anymore

The lilo fix for reiserfs-jh-5 is below as an incremental.

Up and running. ;-)

Linux version 2.6.3-16-smp-DN (geeko@buildhost) (gcc version 3.3.1 (SuSE Linux)) #1 SMP Fri Mar 5 00:30:35 CET 2004

time dd if=/dev/zero of=sparse bs=1 seek=200G count=1 1+0 Records ein
1+0 Records aus
0.000u 2.802s 0:04.24 66.0% 0+0k 0+0io 0pf+0w

insgesamt 288711

drwxrwxr-x    5 root     root          200 2004-03-05 01:00 .
drwxr-xr-x    3 root     root           72 2004-01-12 13:53 ..
drwxr-xr-x    2 nuetzel  users         856 2003-12-27 14:51 bench
drwxr-xr-x    3 nuetzel  users          72 2003-09-07 20:37 dri-trunk
-rw-r--r--    1 nuetzel  users    214748364801 2004-03-05 01:00 sparse
-r--r--r--    1 root     root     295631743 2004-02-27 01:42 

SPECViewperf7.1.1.tar.gz
drwxr-xr-x 15 nuetzel users 392 2004-01-17 04:24 viewperf-6.1.2

time rm sparse
0.000u 7.713s 0:21.52 35.8% 0+0k 0+0io 0pf+0w

Mouse is _smooth_ now but 'rm' takes longer.

top

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  WCHAN     COMMAND
12786 nuetzel   18   0  1772  540 1620 D 37.8  0.1   0:02.28 io_schedu rm

Cheers,
Dieter