patch-2.1.127 linux/fs/hfs/file_hdr.c

Next file: linux/fs/hfs/hfs.h
Previous file: linux/fs/hfs/file_cap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/fs/hfs/file_hdr.c linux/fs/hfs/file_hdr.c
@@ -559,6 +559,7 @@
 	if (read) {
 		inode->i_atime = CURRENT_TIME;
 		*ppos = pos;
+		mark_inode_dirty(inode);
 	}
 	return read;
 }
@@ -874,6 +875,7 @@
 	        if (pos > inode->i_size)
 		        inode->i_size = pos;
 	        inode->i_mtime = inode->i_atime = CURRENT_TIME;
+		mark_inode_dirty(inode);
 	}
 	return written;
 }
@@ -887,7 +889,6 @@
  */
 static void hdr_truncate(struct inode *inode)
 {
-  	/*struct inode *inode = dentry->d_inode;*/
 	struct hfs_cat_entry *entry = HFS_I(inode)->entry;
 	struct hfs_hdr_layout *layout;
 	size_t size = inode->i_size;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov