2 * QNX4 file system, Linux implementation.
6 * Using parts of the xiafs filesystem.
10 * 30-06-1998 by Frank DENIS : ugly filler.
13 #include <linux/smp_lock.h>
16 #ifdef CONFIG_QNX4FS_RW
18 void qnx4_truncate(struct inode *inode)
20 if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
21 S_ISLNK(inode->i_mode))) {
25 if (!(S_ISDIR(inode->i_mode))) {
28 QNX4DEBUG(("qnx4: qnx4_truncate called\n"));
29 inode->i_mtime = inode->i_ctime = CURRENT_TIME_SEC;
30 mark_inode_dirty(inode);