patch-2.4.18 linux/fs/sysv/dir.c
Next file: linux/fs/sysv/ialloc.c
Previous file: linux/fs/sysv/balloc.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue Jan 22 23:04:46 2002
- Orig file:
linux.orig/fs/sysv/dir.c
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/fs/sysv/dir.c linux/fs/sysv/dir.c
@@ -43,8 +43,13 @@
dir->i_version = ++event;
page->mapping->a_ops->commit_write(NULL, page, from, to);
- if (IS_SYNC(dir))
- err = waitfor_one_page(page);
+ if (IS_SYNC(dir)) {
+ int err2;
+ err = writeout_one_page(page);
+ err2 = waitfor_one_page(page);
+ if (err == 0)
+ err = err2;
+ }
return err;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)