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

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

diff -u --recursive --new-file v2.1.126/linux/fs/hfs/file_cap.c linux/fs/hfs/file_cap.c
@@ -180,6 +180,7 @@
 	if (read) {
 		inode->i_atime = CURRENT_TIME;
 		*ppos = pos;
+		mark_inode_dirty(inode);
 	}
 
 	return read;
@@ -280,6 +281,7 @@
 	}
 
 	inode->i_mtime = inode->i_ctime = CURRENT_TIME;
+	mark_inode_dirty(inode);
 	return count;
 }
 
@@ -291,9 +293,8 @@
  */
 static void cap_info_truncate(struct inode *inode)
 {
-  	/*struct inode *inode = dentry->d_inode;*/
-
 	if (inode->i_size > HFS_FORK_MAX) {
 		inode->i_size = HFS_FORK_MAX;
+		mark_inode_dirty(inode);
 	}
 }

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