All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manfred Spraul <manfred@colorfullife.com>
To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: [RFC] event cleanup, part 2
Date: Tue, 01 Jan 2002 22:11:42 +0100	[thread overview]
Message-ID: <3C32260E.CEADDF59@colorfullife.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

Linus merged the first part of my patches that remove
'event' into 2.5.2-pre3.

Attached is the second patch.

patch 1: remove all event users except readdir().
	Merged.

patch 2: replace 'f_version=++event' with 'f_version=0'
	in fs/*.c
	Attached.

patch 3: change the filesystems one by one.
	s/inode->i_version=++event/inode->i_version++/g
	vfat already uses that code for the revalidate
	handling. For readdir() it's impossible until
	step 2 is merged.

patch 4: remove event entirely.

I'm not yet sure if initializing i_version to 0 should be
done in get_empty_inode() or in the fs that use the
readdir optimization.

--
	Manfred

[-- Attachment #2: patch-event-VFS --]
[-- Type: text/plain, Size: 1184 bytes --]

diff -u 2.5/fs/block_dev.c build-2.5/fs/block_dev.c
--- 2.5/fs/block_dev.c	Mon Dec 31 13:41:01 2001
+++ build-2.5/fs/block_dev.c	Tue Jan  1 20:15:27 2002
@@ -181,7 +181,6 @@
 		if (offset != file->f_pos) {
 			file->f_pos = offset;
 			file->f_reada = 0;
-			file->f_version = ++event;
 		}
 		retval = offset;
 	}
diff -u 2.5/fs/file_table.c build-2.5/fs/file_table.c
--- 2.5/fs/file_table.c	Sun Sep 30 16:25:45 2001
+++ build-2.5/fs/file_table.c	Mon Dec 31 16:29:29 2001
@@ -43,7 +43,7 @@
 	new_one:
 		memset(f, 0, sizeof(*f));
 		atomic_set(&f->f_count,1);
-		f->f_version = ++event;
+		f->f_version = 0;
 		f->f_uid = current->fsuid;
 		f->f_gid = current->fsgid;
 		list_add(&f->f_list, &anon_list);
diff -u 2.5/fs/read_write.c build-2.5/fs/read_write.c
--- 2.5/fs/read_write.c	Sat Aug 11 16:15:27 2001
+++ build-2.5/fs/read_write.c	Mon Dec 31 16:29:44 2001
@@ -41,7 +41,6 @@
 		if (offset != file->f_pos) {
 			file->f_pos = offset;
 			file->f_reada = 0;
-			file->f_version = ++event;
 		}
 		retval = offset;
 	}
@@ -69,7 +68,6 @@
 		if (offset != file->f_pos) {
 			file->f_pos = offset;
 			file->f_reada = 0;
-			file->f_version = ++event;
 		}
 		retval = offset;
 	}



             reply	other threads:[~2002-01-01 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-01 21:11 Manfred Spraul [this message]
2002-01-02  4:26 ` [RFC] event cleanup, part 2 Neil Brown
2002-01-02  9:19   ` Manfred Spraul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C32260E.CEADDF59@colorfullife.com \
    --to=manfred@colorfullife.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.