* [patch 16/16] dirsync support for minixfs, sysvfs and ufs
@ 2002-06-01 8:44 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2002-06-01 8:44 UTC (permalink / raw)
To: Linus Torvalds; +Cc: lkml
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);
}
-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-01 8:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-01 8:44 [patch 16/16] dirsync support for minixfs, sysvfs and ufs Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox