Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269236
b: refs/heads/master
c: 611d7a5
h: refs/heads/master
v: v3
  • Loading branch information
Boaz Harrosh committed Oct 24, 2011
1 parent 612baed commit 727dfca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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: 4b46c9f5cf69505f0bc708995b88b0cc60317ffd
refs/heads/master: 611d7a5dc6f2a1a0cfd8cc07b9d15f794cbe5f98
8 changes: 3 additions & 5 deletions trunk/fs/exofs/ore.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ MODULE_LICENSE("GPL");
* 3. Cache some havily used calculations that will be needed by users.
*/

static void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset,
struct ore_striping_info *si);

enum { BIO_MAX_PAGES_KMALLOC =
(PAGE_SIZE - sizeof(struct bio)) / sizeof(struct bio_vec),};

Expand Down Expand Up @@ -409,8 +406,8 @@ EXPORT_SYMBOL(ore_check_io);
*
* O = L % stripe_unit + N * stripe_unit + M * group_depth * stripe_unit
*/
static void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset,
struct ore_striping_info *si)
void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset,
struct ore_striping_info *si)
{
u32 stripe_unit = layout->stripe_unit;
u32 group_width = layout->group_width;
Expand Down Expand Up @@ -443,6 +440,7 @@ static void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset,
si->group_length = T - H;
si->M = M;
}
EXPORT_SYMBOL(ore_calc_stripe_info);

static int _add_stripe_unit(struct ore_io_state *ios, unsigned *cur_pg,
unsigned pgbase, struct ore_per_dev_state *per_dev,
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/scsi/osd_ore.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ static inline unsigned ore_io_state_size(unsigned numdevs)

/* ore.c */
int ore_verify_layout(unsigned total_comps, struct ore_layout *layout);
void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset,
struct ore_striping_info *si);

int ore_get_rw_state(struct ore_layout *layout, struct ore_components *comps,
bool is_reading, u64 offset, u64 length,
struct ore_io_state **ios);
Expand Down

0 comments on commit 727dfca

Please sign in to comment.