patch-2.1.104 linux/fs/coda/file.c
Next file: linux/fs/coda/inode.c
Previous file: linux/fs/coda/dir.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Jun 4 15:53:19 1998
- Orig file:
v2.1.103/linux/fs/coda/file.c
- Orig date:
Thu May 7 22:51:52 1998
diff -u --recursive --new-file v2.1.103/linux/fs/coda/file.c linux/fs/coda/file.c
@@ -192,13 +192,14 @@
return -1;
}
- cnp->c_flags &= ~C_VATTR;
-
down(&cont_inode->i_sem);
result = cont_file.f_op->write(&cont_file , buff, count,
&(cont_file.f_pos));
up(&cont_inode->i_sem);
coda_restore_codafile(coda_inode, coda_file, cont_inode, &cont_file);
+
+ if (result)
+ cnp->c_flags |= C_VATTR;
return result;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov