* [PATCH] 2.4 reiserfs fix for truncate to update mtime.
@ 2002-02-11 13:58 Oleg Drokin on behalf of Hans Reiser
0 siblings, 0 replies; only message in thread
From: Oleg Drokin on behalf of Hans Reiser @ 2002-02-11 13:58 UTC (permalink / raw)
To: marcelo, linux-kernel, reiserfs-dev
[-- Attachment #1: Type: text/plain, Size: 143 bytes --]
Hello!
Attached patch fixes a problem where reiserfs fails to correctly
update mtime after truncate() call in some cases
Bye,
Oleg
[-- Attachment #2: truncate_update_mtime.diff --]
[-- Type: text/plain, Size: 680 bytes --]
--- linus.orig/fs/reiserfs/stree.c Thu, 13 Dec 2001 11:06:51 -0500
+++ linus/fs/reiserfs/stree.c Fri, 01 Feb 2002 13:35:29 -0500
@@ -1700,8 +1700,7 @@
}
if ( n_file_size == 0 || n_file_size < n_new_file_size ) {
- pathrelse(&s_search_path);
- return;
+ goto update_and_out ;
}
/* Update key to search for the last file item. */
@@ -1754,6 +1753,7 @@
"PAP-5680: truncate did not finish: new_file_size %Ld, current %Ld, oid %d\n",
n_new_file_size, n_file_size, s_item_key.on_disk_key.k_objectid);
+update_and_out:
if (update_timestamps) {
// this is truncate, not file closing
p_s_inode->i_mtime = p_s_inode->i_ctime = CURRENT_TIME;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-11 13:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-11 13:58 [PATCH] 2.4 reiserfs fix for truncate to update mtime Oleg Drokin on behalf of Hans Reiser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox