[PATCH 1/1] SQUASHME: pnfs-obj: get rid of threshold policy ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>
---
 fs/nfs/objlayout/objio_osd.c  |   13 -------------
 fs/nfs/objlayout/panfs_shim.c |   14 --------------
 2 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c
index 642d6fa..315f8c6 100644
--- a/fs/nfs/objlayout/objio_osd.c
+++ b/fs/nfs/objlayout/objio_osd.c
@@ -1022,17 +1022,6 @@ objlayout_get_blocksize(void)
 	return sz;
 }
 
-/*
- * Get the I/O threshold
- */
-static ssize_t
-objlayout_get_io_threshold(struct pnfs_layout_type *layoutid,
-			   struct inode *inode)
-{
-	ssize_t sz = -1;
-	return sz;
-}
-
 static struct layoutdriver_policy_operations objlayout_policy_operations = {
 /*
  * Don't gather across stripes, but rather gather (coalesce) up to
@@ -1044,8 +1033,6 @@ static struct layoutdriver_policy_operations objlayout_policy_operations = {
 				 PNFS_LAYOUTRET_ON_SETATTR,
 	.get_stripesize        = objlayout_get_stripesize,
 	.get_blocksize         = objlayout_get_blocksize,
-	.get_read_threshold    = objlayout_get_io_threshold,
-	.get_write_threshold   = objlayout_get_io_threshold,
 };
 
 static struct pnfs_layoutdriver_type objlayout_type = {
diff --git a/fs/nfs/objlayout/panfs_shim.c b/fs/nfs/objlayout/panfs_shim.c
index 6033d2b..4468703 100644
--- a/fs/nfs/objlayout/panfs_shim.c
+++ b/fs/nfs/objlayout/panfs_shim.c
@@ -663,18 +663,6 @@ panlayout_get_blocksize(void)
 	return sz;
 }
 
-/*
- * Get the I/O threshold
- */
-static ssize_t
-panlayout_get_io_threshold(struct pnfs_layout_type *layoutid,
-			   struct inode *inode)
-{
-	ssize_t sz = -1;
-	dprintk("%s: Return %Zd\n", __func__, sz);
-	return sz;
-}
-
 static struct layoutdriver_policy_operations panlayout_policy_operations = {
 /*
  * Don't gather across stripes, but rather gather (coalesce) up to
@@ -686,8 +674,6 @@ static struct layoutdriver_policy_operations panlayout_policy_operations = {
 				 PNFS_LAYOUTRET_ON_SETATTR,
 	.get_stripesize        = panlayout_get_stripesize,
 	.get_blocksize         = panlayout_get_blocksize,
-	.get_read_threshold    = panlayout_get_io_threshold,
-	.get_write_threshold   = panlayout_get_io_threshold,
 };
 
 #define PNFS_LAYOUT_PANOSD (NFS4_PNFS_PRIVATE_LAYOUT | LAYOUT_OSD2_OBJECTS)
-- 
1.6.6.1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux