Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167671
b: refs/heads/master
c: c1cc65c
h: refs/heads/master
i:
  167669: 698d71d
  167667: 0a90d2d
  167663: c0c4c34
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Oct 16, 2009
1 parent f2a3b4d commit 52aebf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 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: df96eee679ba28c98cf722fa7c9f4286ee1ed0bd
refs/heads/master: c1cc65caa19bb8a1b2e371000ef2719581db1691
16 changes: 0 additions & 16 deletions trunk/drivers/md/dm-exception-store.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,6 @@ int dm_exception_store_type_unregister(struct dm_exception_store_type *type)
}
EXPORT_SYMBOL(dm_exception_store_type_unregister);

/*
* Round a number up to the nearest 'size' boundary. size must
* be a power of 2.
*/
static ulong round_up(ulong n, ulong size)
{
size--;
return (n + size) & ~size;
}

static int set_chunk_size(struct dm_exception_store *store,
const char *chunk_size_arg, char **error)
{
Expand All @@ -166,12 +156,6 @@ static int set_chunk_size(struct dm_exception_store *store,
return 0;
}

/*
* Chunk size must be multiple of page size. Silently
* round up if it's not.
*/
chunk_size_ulong = round_up(chunk_size_ulong, PAGE_SIZE >> 9);

return dm_exception_store_set_chunk_size(store,
(unsigned) chunk_size_ulong,
error);
Expand Down

0 comments on commit 52aebf7

Please sign in to comment.