From: Tao Ma Date: Fri, 9 Jul 2010 06:53:11 +0000 (+0800) Subject: ocfs2: make xattr extension work with new local alloc reservation. X-Git-Tag: v2.6.35-rc6~34^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a78f9f4668949a6588b8872f162e86685c63d023;p=pandora-kernel.git ocfs2: make xattr extension work with new local alloc reservation. The old ocfs2_xattr_extent_allocation is too optimistic about the clusters we can get. So actually if the file system is too fragmented, ocfs2_add_clusters_in_btree will return us with EGAIN and we need to allocate clusters once again. So this patch change it to a while loop so that we can allocate clusters until we reach clusters_to_add. Signed-off-by: Tao Ma Signed-off-by: Joel Becker Cc: stable@kernel.org --- Reading git-diff-tree failed