X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=yaffs_guts.h;h=55395dca7e1219e766f2ef8d0f418882eedb4fed;hb=6104166e07b5ffbc8a6004639c9ba3da200bc7a7;hp=abcb74fa13534995fcb09b9bfdc4055a433186e2;hpb=859e8e1d2c37dd6ac976640c2d52281002af2c44;p=yaffs2.git diff --git a/yaffs_guts.h b/yaffs_guts.h index abcb74f..55395dc 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -455,10 +455,6 @@ struct yaffs_ObjectStruct { YCHAR shortName[YAFFS_SHORT_NAME_LENGTH + 1]; #endif -#ifndef __KERNEL__ - __u32 inUse; -#endif - #ifdef CONFIG_YAFFS_WINCE __u32 win_ctime[2]; __u32 win_mtime[2]; @@ -473,10 +469,7 @@ struct yaffs_ObjectStruct { __u32 yst_rdev; -#ifdef __KERNEL__ - struct inode *myInode; - -#endif + void *myInode; yaffs_ObjectType variantType; @@ -599,8 +592,9 @@ struct yaffs_DeviceStruct { int isYaffs2; /* The removeObjectCallback function must be supplied by OS flavours that - * need it. The Linux kernel does not use this, but yaffs direct does use - * it to implement the faster readdir + * need it. + * yaffs direct uses it to implement the faster readdir. + * Linux uses it to protect the directory during unlocking. */ void (*removeObjectCallback)(struct yaffs_ObjectStruct *obj); @@ -643,11 +637,15 @@ struct yaffs_DeviceStruct { struct rw_semaphore dirLock; /* Lock the directory structure */ __u8 *spareBuffer; /* For mtdif2 use. Don't know the size of the buffer * at compile time so we have to allocate it. + */ void (*putSuperFunc) (struct super_block *sb); + struct ylist_head searchContexts; + #endif int isMounted; + int readOnly; int isCheckpointed;