Example #1
0
static int hpfs_dir_release(struct inode *inode, struct file *filp)
{
	hpfs_lock(inode->i_sb);
	hpfs_del_pos(inode, &filp->f_pos);
	/*hpfs_write_if_changed(inode);*/
	hpfs_unlock(inode->i_sb);
	return 0;
}
Example #2
0
File: dir.c Project: 274914765/C
static int hpfs_dir_release(struct inode *inode, struct file *filp)
{
    lock_kernel();
    hpfs_del_pos(inode, &filp->f_pos);
    /*hpfs_write_if_changed(inode);*/
    unlock_kernel();
    return 0;
}