aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTom Haynes <loghyr@primarydata.com>2014-12-11 13:04:55 -0500
committerTom Haynes <loghyr@primarydata.com>2015-02-03 14:06:31 -0500
commit085d1e33a6a8495d9afa58ad2b8b7ea74d613515 (patch)
tree3f39d90c0ccbce5f8f67ab3667304f18d22de70b /fs/nfs/pnfs.h
parentf54bcf2ecee982da47c2baf8bd87fd9ad9984651 (diff)
pnfs: Do not grab the commit_info lock twice when rescheduling writes
Acked-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: Tom Haynes <loghyr@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index f17663446acc..e94f6050e9b1 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -375,15 +375,6 @@ pnfs_scan_commit_lists(struct inode *inode, struct nfs_commit_info *cinfo,
375 return NFS_SERVER(inode)->pnfs_curr_ld->scan_commit_lists(cinfo, max); 375 return NFS_SERVER(inode)->pnfs_curr_ld->scan_commit_lists(cinfo, max);
376} 376}
377 377
378static inline void
379pnfs_recover_commit_reqs(struct inode *inode, struct list_head *list,
380 struct nfs_commit_info *cinfo)
381{
382 if (cinfo->ds == NULL || cinfo->ds->nwritten == 0)
383 return;
384 NFS_SERVER(inode)->pnfs_curr_ld->recover_commit_reqs(list, cinfo);
385}
386
387static inline struct nfs_page * 378static inline struct nfs_page *
388pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, 379pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo,
389 struct page *page) 380 struct page *page)
@@ -554,12 +545,6 @@ pnfs_scan_commit_lists(struct inode *inode, struct nfs_commit_info *cinfo,
554 return 0; 545 return 0;
555} 546}
556 547
557static inline void
558pnfs_recover_commit_reqs(struct inode *inode, struct list_head *list,
559 struct nfs_commit_info *cinfo)
560{
561}
562
563static inline struct nfs_page * 548static inline struct nfs_page *
564pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo, 549pnfs_search_commit_reqs(struct inode *inode, struct nfs_commit_info *cinfo,
565 struct page *page) 550 struct page *page)