From: David Woodhouse Date: Tue, 19 Aug 2008 21:20:17 +0000 (+0100) Subject: Btrfs: Fix NFS exporting of subvol roots. X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d4d9fbd6efa858dfa009518fca1ab85a73fd848;p=pandora-kernel.git Btrfs: Fix NFS exporting of subvol roots. Date: Tue, 19 Aug 2008 22:20:17 +0100 btrfs_lookup_fs_root() only finds subvol roots which have already been seen and put into the cache. For btrfs_get_dentry() we actually have to go to the medium -- so use btrfs_read_fs_root_no_name() instead. In btrfs_get_parent(), notice when we've hit the root of the subvolume and return the real root instead. Signed-off-by: David Woodhouse Signed-off-by: Chris Mason --- Reading git-diff-tree failed