Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38599
b: refs/heads/master
c: 4ff1467
h: refs/heads/master
i:
  38597: 6a1a3dc
  38595: 506db4c
  38591: 1fb9a1c
v: v3
  • Loading branch information
Steven Whitehouse committed Jan 30, 2006
1 parent 11b3446 commit fe8bd86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c25ec8f5684cb3c5dde6a67c1bbc33a449eefbe2
refs/heads/master: 4ff14670ee2a8229381ff295eaae84aa51beff43
14 changes: 7 additions & 7 deletions trunk/fs/gfs2/ops_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "trans.h"

/**
* get_block - Fills in a buffer head with details about a block
* gfs2_get_block - Fills in a buffer head with details about a block
* @inode: The inode
* @lblock: The block number to look up
* @bh_result: The buffer head to return the result in
Expand All @@ -37,8 +37,8 @@
* Returns: errno
*/

static int get_block(struct inode *inode, sector_t lblock,
struct buffer_head *bh_result, int create)
int gfs2_get_block(struct inode *inode, sector_t lblock,
struct buffer_head *bh_result, int create)
{
struct gfs2_inode *ip = get_v2ip(inode);
int new = create;
Expand Down Expand Up @@ -286,7 +286,7 @@ static int gfs2_readpage(struct file *file, struct page *page)
} else
error = zero_readpage(page);
} else
error = block_read_full_page(page, get_block);
error = block_read_full_page(page, gfs2_get_block);
} else
error = jdata_readpage(ip, page);

Expand Down Expand Up @@ -328,11 +328,11 @@ static int gfs2_prepare_write(struct file *file, struct page *page,
page);
if (!error)
error = block_prepare_write(page, from, to,
get_block);
gfs2_get_block);
} else if (!PageUptodate(page))
error = stuffed_readpage(ip, page);
} else
error = block_prepare_write(page, from, to, get_block);
error = block_prepare_write(page, from, to, gfs2_get_block);

return error;
}
Expand Down Expand Up @@ -420,7 +420,7 @@ static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock)
return 0;

if (!gfs2_is_stuffed(ip))
dblock = generic_block_bmap(mapping, lblock, get_block);
dblock = generic_block_bmap(mapping, lblock, gfs2_get_block);

gfs2_glock_dq_uninit(&i_gh);

Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/ops_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@
#define __OPS_ADDRESS_DOT_H__

extern struct address_space_operations gfs2_file_aops;
extern int gfs2_get_block(struct inode *inode, sector_t lblock,
struct buffer_head *bh_result, int create);

#endif /* __OPS_ADDRESS_DOT_H__ */

0 comments on commit fe8bd86

Please sign in to comment.