diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-10 11:23:36 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-10 15:47:03 -0400 |
commit | 848746bd247cdc3ce1d103e92913316445763778 (patch) | |
tree | f235f4e2c75cd54d695dcdb9c5e15beb0bda06ff /fs/nfs/blocklayout/blocklayout.c | |
parent | 71d5b76302e21390b4ab747875de6bd5cfbca979 (diff) |
pnfs/blocklayout: return layouts on setattr
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>
Diffstat (limited to 'fs/nfs/blocklayout/blocklayout.c')
-rw-r--r-- | fs/nfs/blocklayout/blocklayout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c index d3c3c5c972c3..bdd73fbacf48 100644 --- a/fs/nfs/blocklayout/blocklayout.c +++ b/fs/nfs/blocklayout/blocklayout.c | |||
@@ -799,7 +799,8 @@ static struct pnfs_layoutdriver_type blocklayout_type = { | |||
799 | .id = LAYOUT_BLOCK_VOLUME, | 799 | .id = LAYOUT_BLOCK_VOLUME, |
800 | .name = "LAYOUT_BLOCK_VOLUME", | 800 | .name = "LAYOUT_BLOCK_VOLUME", |
801 | .owner = THIS_MODULE, | 801 | .owner = THIS_MODULE, |
802 | .flags = PNFS_READ_WHOLE_PAGE, | 802 | .flags = PNFS_LAYOUTRET_ON_SETATTR | |
803 | PNFS_READ_WHOLE_PAGE, | ||
803 | .read_pagelist = bl_read_pagelist, | 804 | .read_pagelist = bl_read_pagelist, |
804 | .write_pagelist = bl_write_pagelist, | 805 | .write_pagelist = bl_write_pagelist, |
805 | .alloc_layout_hdr = bl_alloc_layout_hdr, | 806 | .alloc_layout_hdr = bl_alloc_layout_hdr, |