[Yaffs] Kernel 2.6.14

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Michael Trimarchi
Date:  
To: yaffs
Subject: [Yaffs] Kernel 2.6.14
Hi all,
I apply this patch to the yaffs filesystem to avoid excpetion in the
yaffs_delete_inode.

static void yaffs_delete_inode(struct inode *inode)
{
        yaffs_Object *obj = yaffs_InodeToObject(inode);
        yaffs_Device *dev;


        truncate_inode_pages(&inode->i_data, 0);
        ....



I must call the truncate of inode, like in the other filesytem before
the clear_inode.

It is correct?

Regards
Michael