[Btrfs-devel] subvol=. bug

Yan Zheng yanzheng at 21cn.com
Mon Feb 18 20:51:47 PST 2008


Sorry, previous patch is malformed.

YZ
---
diff -r 1cc5025e42bb inode.c
--- a/inode.c	Fri Feb 15 13:19:35 2008 -0500
+++ b/inode.c	Tue Feb 19 12:49:05 2008 +0800
@@ -1465,7 +1465,8 @@ read_dir_items:
 			di = (struct btrfs_dir_item *)((char *)di + di_len);
 		}
 	}
-	filp->f_pos = INT_LIMIT(typeof(filp->f_pos));
+	if (key_type == BTRFS_DIR_INDEX_KEY)
+		filp->f_pos = INT_LIMIT(typeof(filp->f_pos));
 nopos:
 	ret = 0;
 err:



More information about the Btrfs-devel mailing list