Skip to content

Commit 7f296b2

Browse files
Christoph Hellwigamschuma-ntap
authored andcommitted
nfs: remove nfs_page_length
The nfs_page_length is not used anywhere, remove it. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent b1043a3 commit 7f296b2

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

fs/nfs/internal.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -797,25 +797,6 @@ static inline void nfs_folio_mark_unstable(struct folio *folio,
797797
}
798798
}
799799

800-
/*
801-
* Determine the number of bytes of data the page contains
802-
*/
803-
static inline
804-
unsigned int nfs_page_length(struct page *page)
805-
{
806-
loff_t i_size = i_size_read(page->mapping->host);
807-
808-
if (i_size > 0) {
809-
pgoff_t index = page_index(page);
810-
pgoff_t end_index = (i_size - 1) >> PAGE_SHIFT;
811-
if (index < end_index)
812-
return PAGE_SIZE;
813-
if (index == end_index)
814-
return ((i_size - 1) & ~PAGE_MASK) + 1;
815-
}
816-
return 0;
817-
}
818-
819800
/*
820801
* Determine the number of bytes of data the page contains
821802
*/

0 commit comments

Comments
 (0)