patch-2.4.10 linux/fs/reiserfs/file.c

Next file: linux/fs/reiserfs/fix_node.c
Previous file: linux/fs/reiserfs/do_balan.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/fs/reiserfs/file.c linux/fs/reiserfs/file.c
@@ -3,18 +3,10 @@
  */
 
 
-#ifdef __KERNEL__
-
 #include <linux/sched.h>
 #include <linux/reiserfs_fs.h>
 #include <linux/smp_lock.h>
 
-#else
-
-#include "nokernel.h"
-
-#endif
-
 /*
 ** We pack the tails of files on file close, not at the time they are written.
 ** This implies an unnecessary copy of the tail and an unnecessary indirect item
@@ -84,7 +76,7 @@
 			      ) {
   struct inode * p_s_inode = p_s_dentry->d_inode;
   struct reiserfs_transaction_handle th ;
-  int n_err = 0;
+  int n_err;
   int windex ;
   int jbegin_count = 1 ;
 
@@ -94,6 +86,7 @@
       BUG ();
 
   n_err = fsync_inode_buffers(p_s_inode) ;
+  n_err |= fsync_inode_data_buffers(p_s_inode);
   /* commit the current transaction to flush any metadata
   ** changes.  sys_fsync takes care of flushing the dirty pages for us
   */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)