Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261820
b: refs/heads/master
c: e9643fe
h: refs/heads/master
v: v3
  • Loading branch information
Benny Halevy authored and Trond Myklebust committed Jul 31, 2011
1 parent 5b9ccbc commit f9e7cc1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 155e7524f28fa374da041434085050693c3df45b
refs/heads/master: e9643fe80d1a1e0ad6acdf43138c39b5709fdbbe
14 changes: 14 additions & 0 deletions trunk/fs/nfs/blocklayout/blocklayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ bl_clear_layoutdriver(struct nfs_server *server)
return 0;
}

static const struct nfs_pageio_ops bl_pg_read_ops = {
.pg_init = pnfs_generic_pg_init_read,
.pg_test = pnfs_generic_pg_test,
.pg_doio = pnfs_generic_pg_readpages,
};

static const struct nfs_pageio_ops bl_pg_write_ops = {
.pg_init = pnfs_generic_pg_init_write,
.pg_test = pnfs_generic_pg_test,
.pg_doio = pnfs_generic_pg_writepages,
};

static struct pnfs_layoutdriver_type blocklayout_type = {
.id = LAYOUT_BLOCK_VOLUME,
.name = "LAYOUT_BLOCK_VOLUME",
Expand All @@ -148,6 +160,8 @@ static struct pnfs_layoutdriver_type blocklayout_type = {
.cleanup_layoutcommit = bl_cleanup_layoutcommit,
.set_layoutdriver = bl_set_layoutdriver,
.clear_layoutdriver = bl_clear_layoutdriver,
.pg_read_ops = &bl_pg_read_ops,
.pg_write_ops = &bl_pg_write_ops,
};

static int __init nfs4blocklayout_init(void)
Expand Down

0 comments on commit f9e7cc1

Please sign in to comment.