projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71d5b76
)
pnfs/blocklayout: return layouts on setattr
author
Christoph Hellwig
<hch@lst.de>
Wed, 10 Sep 2014 15:23:36 +0000
(08:23 -0700)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:03 +0000
(12:47 -0700)
This speads up truncate-heavy workloads like fsx by multiple orders of
magnitude.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/blocklayout.c
patch
|
blob
|
history
diff --git
a/fs/nfs/blocklayout/blocklayout.c
b/fs/nfs/blocklayout/blocklayout.c
index d3c3c5c972c31c4a288ba963fc33bbc481e968f4..bdd73fbacf48f734db7e2c9731f4ac3f5593e3f7 100644
(file)
--- a/
fs/nfs/blocklayout/blocklayout.c
+++ b/
fs/nfs/blocklayout/blocklayout.c
@@
-799,7
+799,8
@@
static struct pnfs_layoutdriver_type blocklayout_type = {
.id = LAYOUT_BLOCK_VOLUME,
.name = "LAYOUT_BLOCK_VOLUME",
.owner = THIS_MODULE,
- .flags = PNFS_READ_WHOLE_PAGE,
+ .flags = PNFS_LAYOUTRET_ON_SETATTR |
+ PNFS_READ_WHOLE_PAGE,
.read_pagelist = bl_read_pagelist,
.write_pagelist = bl_write_pagelist,
.alloc_layout_hdr = bl_alloc_layout_hdr,