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/bmap.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/bmap.c')
-rw-r--r-- | fs/gfs2/bmap.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index f570d8caef68..cfe1a428c668 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -49,37 +49,6 @@ struct strip_mine { | |||
49 | }; | 49 | }; |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * @gfs2_unstuffer_sync - Synchronously unstuff a dinode | ||
53 | * @ip: | ||
54 | * @dibh: | ||
55 | * @block: | ||
56 | * @private: | ||
57 | * | ||
58 | * Cheat and use a metadata buffer instead of a data page. | ||
59 | * | ||
60 | * Returns: errno | ||
61 | */ | ||
62 | #if 0 | ||
63 | int gfs2_unstuffer_sync(struct gfs2_inode *ip, struct buffer_head *dibh, | ||
64 | uint64_t block, void *private) | ||
65 | { | ||
66 | struct buffer_head *bh; | ||
67 | int error; | ||
68 | |||
69 | bh = gfs2_meta_new(ip->i_gl, block); | ||
70 | |||
71 | gfs2_buffer_copy_tail(bh, 0, dibh, sizeof(struct gfs2_dinode)); | ||
72 | |||
73 | set_buffer_dirty(bh); | ||
74 | error = sync_dirty_buffer(bh); | ||
75 | |||
76 | brelse(bh); | ||
77 | |||
78 | return error; | ||
79 | } | ||
80 | #endif /* 0 */ | ||
81 | |||
82 | /** | ||
83 | * gfs2_unstuff_dinode - Unstuff a dinode when the data has grown too big | 52 | * gfs2_unstuff_dinode - Unstuff a dinode when the data has grown too big |
84 | * @ip: The GFS2 inode to unstuff | 53 | * @ip: The GFS2 inode to unstuff |
85 | * @unstuffer: the routine that handles unstuffing a non-zero length file | 54 | * @unstuffer: the routine that handles unstuffing a non-zero length file |