yaffs just fixed the way in which a symlink is opened in the yaffs browser.
[yaffs2.git] / yaffs_yaffs2.h
1 /*
2  * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
3  *
4  * Copyright (C) 2002-2010 Aleph One Ltd.
5  *   for Toby Churchill Ltd and Brightstar Engineering
6  *
7  * Created by Charles Manning <charles@aleph1.co.uk>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12  */
13
14 #ifndef __YAFFS_YAFFS2_H__
15 #define __YAFFS_YAFFS2_H__
16
17 #include "yaffs_guts.h"
18
19 void yaffs2_CalcOldestDirtySequence(yaffs_Device *dev);
20 void yaffs2_FindOldestDirtySequence(yaffs_Device *dev);
21 void yaffs2_ClearOldestDirtySequence(yaffs_Device *dev, yaffs_BlockInfo *bi);
22 void yaffs2_UpdateOldestDirtySequence(yaffs_Device *dev, unsigned blockNo, yaffs_BlockInfo *bi);
23 int yaffs2_BlockNotDisqualifiedFromGC(yaffs_Device *dev, yaffs_BlockInfo *bi);
24 __u32 yaffs2_FindRefreshBlock(yaffs_Device *dev);
25 int yaffs2_CheckpointRequired(yaffs_Device *dev);
26 int yaffs2_CalcCheckpointBlocksRequired(yaffs_Device *dev);
27
28
29 void yaffs2_InvalidateCheckpoint(yaffs_Device *dev);
30 int yaffs2_CheckpointSave(yaffs_Device *dev);
31 int yaffs2_CheckpointRestore(yaffs_Device *dev);
32
33 int yaffs2_HandleHole(yaffs_Object *obj, loff_t newSize);
34 int yaffs2_ScanBackwards(yaffs_Device *dev);
35
36 #endif