Skip to content

Commit

Permalink
fat: Remove cluster cache init and data structure.
Browse files Browse the repository at this point in the history
The cluster cache was used before porting to the file map API and is
not and can not be used there anymore.
  • Loading branch information
mmlr committed Jul 4, 2015
1 parent b8cacf4 commit 59891eb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/add-ons/kernel/file_systems/fat/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@

typedef struct filecookie {
uint32 mode; // open mode

/* simple cluster cache */
struct {
uint32 iteration;
uint32 index; /* index in the fat chain */
uint32 cluster;
} ccache;
} filecookie;


Expand Down Expand Up @@ -343,9 +336,6 @@ dosfs_open(fs_volume *_vol, fs_vnode *_node, int omode, void **_cookie)
}

cookie->mode = omode;
cookie->ccache.iteration = node->iteration;
cookie->ccache.index = 0;
cookie->ccache.cluster = node->cluster;
*_cookie = cookie;
result = B_OK;

Expand Down Expand Up @@ -647,9 +637,6 @@ dosfs_create(fs_volume *_vol, fs_vnode *_dir, const char *name, int omode,
}

cookie->mode = omode;
cookie->ccache.iteration = file->iteration;
cookie->ccache.index = 0;
cookie->ccache.cluster = file->cluster;
*_cookie = cookie;

notify_entry_created(vol->id, dir->vnid, name, *vnid);
Expand Down

0 comments on commit 59891eb

Please sign in to comment.