reiserfs changeset 1 of 7 to include into 2.4 tree
PATCH 1/1 reiserfs changeset 1 of 7 to include into 2.4 tree
Hello!
This changeset implements various license cleanups for reiserfs in linux kernel v2.4, including reimplementation of parse_options function. You can pull it from bk://thebsh.namesys.com/bk/reiser3-linux-2.4
Diffstat:
fs/reiserfs/bitmap.c | 7 fs/reiserfs/buffer2.c | 2 fs/reiserfs/dir.c | 6 fs/reiserfs/do_balan.c | 2 fs/reiserfs/file.c | 2 fs/reiserfs/fix_node.c | 2 fs/reiserfs/hashes.c | 2 fs/reiserfs/ibalance.c | 2 fs/reiserfs/inode.c | 39 ---- fs/reiserfs/ioctl.c | 10 - fs/reiserfs/item_ops.c | 2 fs/reiserfs/lbalance.c | 2 fs/reiserfs/namei.c | 215 ++++++++------------------ fs/reiserfs/objectid.c | 2 fs/reiserfs/prints.c | 2 fs/reiserfs/procfs.c | 4 fs/reiserfs/resize.c | 2 fs/reiserfs/stree.c | 2 fs/reiserfs/super.c | 337 +++++++++++++++++++++++------------------ fs/reiserfs/tail_conversion.c | 2 fs/reiserfs/version.c | 2 include/linux/reiserfs_fs.h | 8 include/linux/reiserfs_fs_i.h | 3 include/linux/reiserfs_fs_sb.h | 2 24 files changed, 304 insertions(+), 355 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.681 -> 1.682 # fs/reiserfs/dir.c 1.11 -> 1.12 # fs/reiserfs/file.c 1.8 -> 1.9
# fs/reiserfs/ibalance.c 1.7 -> 1.8
# fs/reiserfs/namei.c 1.19 -> 1.20
# fs/reiserfs/item_ops.c 1.6 -> 1.7
# fs/reiserfs/do_balan.c 1.9 -> 1.10
# fs/reiserfs/hashes.c 1.3 -> 1.4
# include/linux/reiserfs_fs_i.h 1.6 -> 1.7
# fs/reiserfs/procfs.c 1.4 -> 1.5
# fs/reiserfs/fix_node.c 1.15 -> 1.16
# fs/reiserfs/inode.c 1.32 -> 1.33
# include/linux/reiserfs_fs.h 1.17 -> 1.18
# fs/reiserfs/resize.c 1.4 -> 1.5
# fs/reiserfs/ioctl.c 1.5 -> 1.6
# fs/reiserfs/objectid.c 1.10 -> 1.11
# fs/reiserfs/buffer2.c 1.7 -> 1.8
# fs/reiserfs/version.c 1.1 -> 1.2
# fs/reiserfs/super.c 1.18 -> 1.19
# fs/reiserfs/tail_conversion.c 1.11 -> 1.12
# include/linux/reiserfs_fs_sb.h 1.10 -> 1.11
# fs/reiserfs/prints.c 1.11 -> 1.12 # fs/reiserfs/bitmap.c 1.12 -> 1.13 # fs/reiserfs/stree.c 1.18 -> 1.19
# fs/reiserfs/lbalance.c 1.7 -> 1.8
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/08/06 [email protected] 1.682
# Many files:
# licensing cleanups, including fixing comments and parse_options reimplementation
# --------------------------------------------
#
fs/reiserfs/bitmap.c +2 -5
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
@@ -663,10 +663,7 @@return ret; } -// -// a portion of this function, was derived from minix or ext2's -// analog. You should be able to tell which portion by looking at the -// ext2 code and comparing. +static void __discard_prealloc (struct reiserfs_transaction_handle * th,struct inode * inode) {
fs/reiserfs/buffer2.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
fs/reiserfs/dir.c +3 -3
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
@@ -106,7 +106,7 @@if (!d_name[d_reclen -1 ]) d_reclen =strlen (d_name); -if (d_reclen >REISERFS_MAX_NAME_LEN (inode->i_sb->s_blocksize)){ +if (d_reclen >REISERFS_MAX_NAME (inode->i_sb->s_blocksize)){/* too big to send back to VFS */ continue ; }
@@ -177,7 +177,7 @@ end: -// FIXME: ext2_readdir does not reset f_pos + filp->f_pos = next_pos;pathrelse (&path_to_entry);reiserfs_check_path (&path_to_entry) ;
fs/reiserfs/do_balan.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ /* Now we have all buffers that must be used in balancing of the tree */
fs/reiserfs/file.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */
fs/reiserfs/fix_node.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ /**
fs/reiserfs/hashes.c +1 -1
@@ -171,7 +171,7 @@return h0^h1; } -/* What follows in this file is copyright 2000 by Hans Reiser, and the +/* What follows in this file is copyright 2000-2002 by Hans Reiser, and the * licensing of what follows is governed by reiserfs/README */ u32 yura_hash (const signed char *msg,int len)
fs/reiserfs/ibalance.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
fs/reiserfs/inode.c +5 -34
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
@@ -19,10 +19,7 @@static int reiserfs_get_block (struct inode * inode,long block,struct buffer_head * bh_result,int create); -// -// initially this function was derived from minix or ext2's analog and -// evolved as the prototype did -// +void reiserfs_delete_inode (struct inode * inode) {int jbegin_count =JOURNAL_PER_BALANCE_CNT *2 ;
@@ -111,8 +108,7 @@ }// -// FIXME: we might cache recently accessed indirect item (or at least -// first 15 pointers just like ext2 does +// FIXME: we might cache recently accessed indirect item // Ugh. Not too eager for that.... // I cut the code until such time as I see a convincing argument (benchmark).
@@ -543,12 +539,7 @@#endif return reiserfs_new_unf_blocknrs (th, allocated_block_nr, tag); } -// -// initially this function was derived from ext2's analog and evolved -// as the prototype did. You'll need to look at the ext2 version to -// determine which parts are derivative, if any, understanding that -// there are only so many ways to code to a given interface. -// +static int reiserfs_get_block (struct inode * inode,long block,struct buffer_head * bh_result,int create) {
@@ -1142,11 +1133,6 @@ } -// -// initially this function was derived from minix or ext2's analog and -// evolved as the prototype did -// -/* looks for stat data in the tree, and fills up the fields of in-core inode stat data fields */ void reiserfs_read_inode2 (struct inode * inode,void *p)
@@ -1368,10 +1354,6 @@ } -// -// initially this function was derived from minix or ext2's analog and -// evolved as the prototype did -// /* looks for stat data, then copies fields to it, marks the buffer containing stat data as dirty */ /* reiserfs inodes are never really dirty, since the dirty inode call
@@ -2042,18 +2024,13 @@return error ; } -// -// this is exactly what 2.3.99-pre9's ext2_readpage is -// +static int reiserfs_readpage (struct file *f,struct page * page) {return block_read_full_page (page, reiserfs_get_block); } -// -// modified from ext2_writepage is -// static int reiserfs_writepage (struct page * page) {struct inode *inode = page->mapping->host ;
@@ -2062,9 +2039,6 @@ } -// -// from ext2_prepare_write, but modified -// int reiserfs_prepare_write (struct file *f,struct page *page,unsigned from,unsigned to) {struct inode *inode = page->mapping->host ;
@@ -2074,9 +2048,6 @@ } -// -// this is exactly what 2.3.99-pre9's ext2_bmap is -// static int reiserfs_aop_bmap (struct address_space *as,long block) {return generic_block_bmap (as, block, reiserfs_bmap) ; }
fs/reiserfs/ioctl.c +7 -3
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/fs.h>
@@ -31,8 +31,12 @@return 0 ; }else return -ENOTTY ; -/* following two cases are taken from fs/ext2/ioctl.c by Remy -Card ([email protected]) */ +/* +* Following {G,S}ETFLAGS, and {G,S}ETVERSION are providing ext2 +* binary compatible interface (used by lsattr(1), and chattr(1)) and +* are * thus conceptually similar to appropriate pieces of +* fs/ext2/ioctl.c +*/ case REISERFS_IOC_GETFLAGS : flags = inode -> u.reiserfs_i.i_attrs;i_attrs_to_sd_attrs ( inode, (__u16 * ) &flags );
fs/reiserfs/item_ops.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/sched.h>
fs/reiserfs/lbalance.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
fs/reiserfs/namei.c +70 -145
475 lines not on this page · raw message
fs/reiserfs/objectid.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
fs/reiserfs/prints.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ #include <linux/config.h>
fs/reiserfs/procfs.c +1 -3
@@ -1,9 +1,7 @@/* -*- linux-c -*- */ -/* fs/reiserfs/procfs.c */ -/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ /* proc info support a la one created by [email protected] for PGC */
fs/reiserfs/resize.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ /*
fs/reiserfs/stree.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ /*
fs/reiserfs/super.c +194 -143
438 lines not on this page · raw message
fs/reiserfs/tail_conversion.c +1 -1
@@ -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>
fs/reiserfs/version.c +1 -1
@@ -1,5 +1,5 @@/* -* Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README */ char *reiserfs_get_version_string (void ) {
include/linux/reiserfs_fs.h +4 -4
@@ -1,5 +1,5 @@/* -* Copyright 1996, 1997, 1998 Hans Reiser, see reiserfs/README for licensing and copyright details +* Copyright 1996-2002 Hans Reiser, see reiserfs/README for licensing and copyright details */ /* this file has an amazingly stupid
@@ -953,9 +953,7 @@#define B_I_E_NAME (bh,ih,entry_num) ((char *)(bh->b_data + ih_location(ih) + deh_location(B_I_DEH(bh,ih)+(entry_num))))// two entries per block (at least) -//#define REISERFS_MAX_NAME_LEN(block_size) -//((block_size - BLKH_SIZE - IH_SIZE - DEH_SIZE * 2) / 2) -#define REISERFS_MAX_NAME_LEN (block_size) 255 +#define REISERFS_MAX_NAME (block_size) 255/* this structure is used for operations on directory entries. It is
@@ -1530,6 +1528,8 @@/* After several hours of tedious analysis, the following hash * function won. Do not mess with it... -DaveM */ +/* The two definitions below were borrowed from fs/buffer.c file of Linux kernel +* sources and are not licensed by Namesys to its non-GPL license customers */ #define _jhashfn (dev,block) \ ((((dev)<<(JBH_HASH_SHIFT - 6)) ^ ((dev)<<(JBH_HASH_SHIFT - 9))) ^ \ (((block)<<(JBH_HASH_SHIFT - 6)) ^ ((block) >> 13) ^ ((block) << (JBH_HASH_SHIFT - 12))))
include/linux/reiserfs_fs_i.h +3 -0
@@ -1,3 +1,6 @@ +/* +* Copyright 2000-2002 by Hans Reiser, licensing governed by reiserfs/README +*/ #ifndef _REISER_FS_I#define _REISER_FS_I
include/linux/reiserfs_fs_sb.h +1 -1
@@ -1,4 +1,4 @@ -/* Copyright 1996-2000 Hans Reiser, see reiserfs/README for licensing +/* Copyright 1996-2002 Hans Reiser, see reiserfs/README for licensing * and copyright details */ #ifndef _LINUX_REISER_FS_SB