[GFS2] Remove some unused code

Remove some of the unused code flagged up by Adrian Bunk.

Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse
This commit is contained in:
Steven Whitehouse
2006-04-28 11:48:45 -04:00
rodzic bac1e07926
commit 56409abbf8
5 zmienionych plików z 0 dodań i 315 usunięć

Wyświetl plik

@@ -48,37 +48,6 @@ struct strip_mine {
unsigned int sm_height;
};
/**
* @gfs2_unstuffer_sync - Synchronously unstuff a dinode
* @ip:
* @dibh:
* @block:
* @private:
*
* Cheat and use a metadata buffer instead of a data page.
*
* Returns: errno
*/
#if 0
int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh,
uint64_t block, void *private)
{
struct buffer_head *bh;
int error;
bh = gfs2_meta_new(ip->i_gl, block);
gfs2_buffer_copy_tail(bh, 0, dibh, sizeof(struct gfs2_dinode));
set_buffer_dirty(bh);
error = sync_dirty_buffer(bh);
brelse(bh);
return error;
}
#endif /* 0 */
/**
* gfs2_unstuff_dinode - Unstuff a dinode when the data has grown too big
* @ip: The GFS2 inode to unstuff