All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [patch 16/16] dirsync support for minixfs, sysvfs and ufs
Date: Sat, 01 Jun 2002 01:44:34 -0700	[thread overview]
Message-ID: <3CF88972.D2E192C4@zip.com.au> (raw)



Makes minixfs, sysvfs and ufs understand `mount -o dirsync'.



=====================================

--- 2.5.19/fs/minix/dir.c~more-dirsync	Sat Jun  1 01:18:14 2002
+++ 2.5.19-akpm/fs/minix/dir.c	Sat Jun  1 01:18:14 2002
@@ -49,7 +49,7 @@ static int dir_commit_chunk(struct page 
 	struct inode *dir = (struct inode *)page->mapping->host;
 	int err = 0;
 	page->mapping->a_ops->commit_write(NULL, page, from, to);
-	if (IS_SYNC(dir))
+	if (IS_DIRSYNC(dir))
 		err = write_one_page(page, 1);
 	else
 		unlock_page(page);
--- 2.5.19/fs/sysv/dir.c~more-dirsync	Sat Jun  1 01:18:14 2002
+++ 2.5.19-akpm/fs/sysv/dir.c	Sat Jun  1 01:18:14 2002
@@ -42,7 +42,7 @@ static int dir_commit_chunk(struct page 
 	int err = 0;
 
 	page->mapping->a_ops->commit_write(NULL, page, from, to);
-	if (IS_SYNC(dir))
+	if (IS_DIRSYNC(dir))
 		err = write_one_page(page, 1);
 	else
 		unlock_page(page);
--- 2.5.19/fs/ufs/dir.c~more-dirsync	Sat Jun  1 01:18:14 2002
+++ 2.5.19-akpm/fs/ufs/dir.c	Sat Jun  1 01:18:14 2002
@@ -356,7 +356,7 @@ void ufs_set_link(struct inode *dir, str
 	dir->i_version = ++event;
 	de->d_ino = cpu_to_fs32(dir->i_sb, inode->i_ino);
 	mark_buffer_dirty(bh);
-	if (IS_SYNC(dir)) {
+	if (IS_DIRSYNC(dir)) {
 		ll_rw_block (WRITE, 1, &bh);
 		wait_on_buffer(bh);
 	}
@@ -457,7 +457,7 @@ int ufs_add_link(struct dentry *dentry, 
 	de->d_ino = cpu_to_fs32(sb, inode->i_ino);
 	ufs_set_de_type(sb, de, inode->i_mode);
 	mark_buffer_dirty(bh);
-	if (IS_SYNC(dir)) {
+	if (IS_DIRSYNC(dir)) {
 		ll_rw_block (WRITE, 1, &bh);
 		wait_on_buffer (bh);
 	}
@@ -508,7 +508,7 @@ int ufs_delete_entry (struct inode * ino
 			inode->i_ctime = inode->i_mtime = CURRENT_TIME;
 			mark_inode_dirty(inode);
 			mark_buffer_dirty(bh);
-			if (IS_SYNC(inode)) {
+			if (IS_DIRSYNC(inode)) {
 				ll_rw_block(WRITE, 1, &bh);
 				wait_on_buffer(bh);
 			}

-

                 reply	other threads:[~2002-06-01  8:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3CF88972.D2E192C4@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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.