summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-07-05 08:38:38 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2024-07-10 20:28:06 +0300
commit7f296b25f2a6453bf052b03ed0676a18bee312a5 (patch)
treecce57ed711e0436f4ba90d2e4b5cd2a26d220574 /fs/nfs
parentb1043a3304d24e1be39e18dcb3fdee5220561ef1 (diff)
downloadlinux-7f296b25f2a6453bf052b03ed0676a18bee312a5.tar.xz
nfs: remove nfs_page_length
The nfs_page_length is not used anywhere, remove it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/internal.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 87ebc4608c31..5902a9beca1f 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -800,25 +800,6 @@ static inline void nfs_folio_mark_unstable(struct folio *folio,
/*
* Determine the number of bytes of data the page contains
*/
-static inline
-unsigned int nfs_page_length(struct page *page)
-{
- loff_t i_size = i_size_read(page->mapping->host);
-
- if (i_size > 0) {
- pgoff_t index = page_index(page);
- pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT;
- if (index < end_index)
- return PAGE_SIZE;
- if (index == end_index)
- return ((i_size - 1) & ~PAGE_MASK) + 1;
- }
- return 0;
-}
-
-/*
- * Determine the number of bytes of data the page contains
- */
static inline size_t nfs_folio_length(struct folio *folio)
{
loff_t i_size = i_size_read(folio->mapping->host);