[PATCH] add comments for extent_fiemap

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

 



This also explains btrfs fiemap ioctl() return values, especially the positive
return value, which may confuse users.

Signed-off-by: Peng Tao <bergwolf@xxxxxxxxx>
---
 fs/btrfs/extent_io.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 6826018..287896e 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2828,6 +2828,11 @@ out:
 	return sector;
 }
 
+/*
+ * Get the extents count of a file and map the extent to a user-supplied extent
+ * array. Returns 0 on success, 1 when the user-supplied extents array is full,
+ * and negetive values on failure.
+ */
 int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
 		__u64 start, __u64 len, get_extent_t *get_extent)
 {
-- 
1.6.2.GIT

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" 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 NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux