[PATCH 08/13] pnfsd-block: allow positive fiemap rval

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

 



From: Benny Halevy <bhalevy@xxxxxxxxxx>

Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxx>
---
 fs/nfsd/bl_ops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfsd/bl_ops.c b/fs/nfsd/bl_ops.c
index 52ac073..0c3a536 100644
--- a/fs/nfsd/bl_ops.c
+++ b/fs/nfsd/bl_ops.c
@@ -1302,7 +1302,7 @@ struct list_head *
 	    (1 << i->i_sb->s_blocksize_bits) - 1);
 	set_fs(old_fs);
 	
-	if (rval || !fei->fi_extents_mapped) {
+	if (rval < 0 || !fei->fi_extents_mapped) {
 		dprintk("    No extents. Wanted %d, got %d: rval=%d\n",
 			fei->fi_extents_max, fei->fi_extents_mapped, rval);
 		kfree(fe);
-- 
1.7.6

--
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