aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pagelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r--fs/nfs/pagelist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c
index b6ee3a6ee96d..7368b2130a41 100644
--- a/fs/nfs/pagelist.c
+++ b/fs/nfs/pagelist.c
@@ -251,8 +251,10 @@ nfs_page_group_init(struct nfs_page *req, struct nfs_page *prev)
251 /* grab extra ref if head request has extra ref from 251 /* grab extra ref if head request has extra ref from
252 * the write/commit path to handle handoff between write 252 * the write/commit path to handle handoff between write
253 * and commit lists */ 253 * and commit lists */
254 if (test_bit(PG_INODE_REF, &prev->wb_head->wb_flags)) 254 if (test_bit(PG_INODE_REF, &prev->wb_head->wb_flags)) {
255 set_bit(PG_INODE_REF, &req->wb_flags);
255 kref_get(&req->wb_kref); 256 kref_get(&req->wb_kref);
257 }
256 } 258 }
257} 259}
258 260