[pnfs] [PATCH 09/37] pnfs: update pnfs_update_layout comments

Benny Halevy bhalevy at panasas.com
Tue Jan 1 05:49:56 EST 2008


Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
 fs/nfs/pnfs.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 592cf13..bec43e1 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -444,9 +444,8 @@ pnfs_inject_layout(struct nfs_inode *nfsi,
 	return io_ops->set_layout(layid, inode, lgr);
 }
 
-/* Check to see if the module is handling which layouts need to be
- * retrieved from the server.  If they are not, then use retrieve based
- * upon the returned data ranges from get_layout.
+/* Update the file's layout for the given range and iomode.
+ * Layout is retreived from the server if needed.
  */
 int
 pnfs_update_layout(struct inode *ino,
@@ -462,11 +461,6 @@ pnfs_update_layout(struct inode *ino,
 	struct pnfs_layout_type *layout_new;
 	int result = -EIO;
 
-	/* TODO: Check to see if the pnfs module is handling data layout
-	 * range caching Something like:
-	 * return(nfss->pnfs_module->pnfs_io_interface->have_layout(..))
-	 */
-
 	arg.lseg.iomode = iomode;
 	arg.lseg.offset = pos;
 	arg.lseg.length = count;
-- 
1.5.3.3



More information about the pNFS mailing list