diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-28 11:48:45 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-28 11:48:45 -0400 |
commit | 56409abbf8a9e3754d752d0189f9b9a609ec78de (patch) | |
tree | ad58978a564ce0679d4a560e187840308ed7cc25 /fs/gfs2/glock.c | |
parent | bac1e07926ae514739e6a12218c8b6ce8ce04514 (diff) |
[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
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r-- | fs/gfs2/glock.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 0a5a0e87b0a6..4fb8066dc745 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -1328,29 +1328,6 @@ static void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, | |||
1328 | glops->go_xmote_th(gl, state, flags); | 1328 | glops->go_xmote_th(gl, state, flags); |
1329 | } | 1329 | } |
1330 | 1330 | ||
1331 | /** | ||
1332 | * gfs2_glock_force_drop - Force a glock to be uncached | ||
1333 | * @gl: the glock | ||
1334 | * | ||
1335 | */ | ||
1336 | #if 0 | ||
1337 | void gfs2_glock_force_drop(struct gfs2_glock *gl) | ||
1338 | { | ||
1339 | struct gfs2_holder gh; | ||
1340 | |||
1341 | gfs2_holder_init(gl, LM_ST_UNLOCKED, 0, &gh); | ||
1342 | set_bit(HIF_DEMOTE, &gh.gh_iflags); | ||
1343 | |||
1344 | spin_lock(&gl->gl_spin); | ||
1345 | list_add_tail(&gh.gh_list, &gl->gl_waiters2); | ||
1346 | run_queue(gl); | ||
1347 | spin_unlock(&gl->gl_spin); | ||
1348 | |||
1349 | wait_for_completion(&gh.gh_wait); | ||
1350 | gfs2_holder_uninit(&gh); | ||
1351 | } | ||
1352 | #endif /* 0 */ | ||
1353 | |||
1354 | static void greedy_work(void *data) | 1331 | static void greedy_work(void *data) |
1355 | { | 1332 | { |
1356 | struct greedy *gr = data; | 1333 | struct greedy *gr = data; |