Orangefs: improve comments
authorMike Marshall <hubcap@omnibond.com>
Fri, 11 Dec 2015 15:50:42 +0000 (10:50 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 11 Dec 2015 15:50:42 +0000 (10:50 -0500)
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-bufmap.c

index c5368d852ee28206b85f08adb972946251b682a7..f7cd18a2a73be261a54bfd466a59aa2f1d1b5021 100644 (file)
@@ -499,6 +499,10 @@ void readdir_index_put(struct orangefs_bufmap *bufmap, int buffer_index)
        orangefs_bufmap_unref(bufmap);
 }
 
+/*
+ * we've been handed an iovec, we need to copy it to 
+ * the shared memory descriptor at "buffer_index".
+ */
 int orangefs_bufmap_copy_from_iovec(struct orangefs_bufmap *bufmap,
                                struct iov_iter *iter,
                                int buffer_index,
@@ -527,9 +531,8 @@ int orangefs_bufmap_copy_from_iovec(struct orangefs_bufmap *bufmap,
 }
 
 /*
- * Iterate through the array of pages containing the bytes from
- * a file being read.
- *
+ * we've been handed an iovec, we need to fill it from
+ * the shared memory descriptor at "buffer_index".
  */
 int orangefs_bufmap_copy_to_iovec(struct orangefs_bufmap *bufmap,
                                    struct iov_iter *iter,