Skip to content

Commit

Permalink
[GFS2] Remove some unused code
Browse files Browse the repository at this point in the history
Remove some of the unused code flagged up by Adrian Bunk.

Cc: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse
  • Loading branch information
Steven Whitehouse committed Apr 28, 2006
1 parent bac1e07 commit 56409ab
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 315 deletions.
31 changes: 0 additions & 31 deletions fs/gfs2/bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 0 additions & 27 deletions fs/gfs2/eattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,33 +358,6 @@ static int ea_remove_unstuffed(struct gfs2_inode *ip, struct buffer_head *bh,
return error;
}

#if 0

static int gfs2_ea_repack_i(struct gfs2_inode *ip)
{
return -EOPNOTSUPP;
}

int gfs2_ea_repack(struct gfs2_inode *ip)
{
struct gfs2_holder gh;
int error;

error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
if (error)
return error;

/* Some sort of permissions checking would be nice */

error = gfs2_ea_repack_i(ip);

gfs2_glock_dq_uninit(&gh);

return error;
}

#endif /* 0 */

struct ea_list {
struct gfs2_ea_request *ei_er;
unsigned int ei_size;
Expand Down
23 changes: 0 additions & 23 deletions fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1328,29 +1328,6 @@ static void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state,
glops->go_xmote_th(gl, state, flags);
}

/**
* gfs2_glock_force_drop - Force a glock to be uncached
* @gl: the glock
*
*/
#if 0
void gfs2_glock_force_drop(struct gfs2_glock *gl)
{
struct gfs2_holder gh;

gfs2_holder_init(gl, LM_ST_UNLOCKED, 0, &gh);
set_bit(HIF_DEMOTE, &gh.gh_iflags);

spin_lock(&gl->gl_spin);
list_add_tail(&gh.gh_list, &gl->gl_waiters2);
run_queue(gl);
spin_unlock(&gl->gl_spin);

wait_for_completion(&gh.gh_wait);
gfs2_holder_uninit(&gh);
}
#endif /* 0 */

static void greedy_work(void *data)
{
struct greedy *gr = data;
Expand Down
9 changes: 0 additions & 9 deletions fs/gfs2/lvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,4 @@ void gfs2_quota_lvb_out(struct gfs2_quota_lvb *qb, char *lvb)
str->qb_value = cpu_to_be64(qb->qb_value);
}

#if 0
void gfs2_quota_lvb_print(struct gfs2_quota_lvb *qb)
{
pv(qb, qb_magic, "%u");
pv(qb, qb_limit, "%llu");
pv(qb, qb_warn, "%llu");
pv(qb, qb_value, "%lld");
}
#endif /* 0 */

Loading

0 comments on commit 56409ab

Please sign in to comment.