add comments for extent_fiemap
PATCH 1/1 add comments for extent_fiemap
This also explains btrfs fiemap ioctl() return values, especially the positive return value, which may confuse users.
Signed-off-by Peng Tao <[email protected]>
--- fs/btrfs/extent_io.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
fs/btrfs/extent_io.c +5 -0
@@ -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) {
Signature · 1 line
1.6.2.GIT