diff options
author | Tariq Saeed <tariq.x.saeed@oracle.com> | 2014-04-03 14:47:03 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:20:55 -0700 |
commit | 3ed2be719eb9770139da791342b190b20a7a9270 (patch) | |
tree | 1d8bfe464b454651400aef7158de91ff07cbab3a /fs/btrfs/hash.h | |
parent | a35ad97cd48cfab45f4ee5eb0e6f5787a05cab25 (diff) |
ocfs2: allow for more than one data extent when creating xattr
Orabug: 18108070
ocfs2_xattr_extend_allocation() hits panic when creating xattr during
data extent alloc phase. The problem occurs if due to local alloc
fragmentation, clusters are spread over multiple extents. In this case
ocfs2_add_clusters_in_btree() finds no space to store more than one
extent record and therefore fails returning RESTART_META. The situation
is anticipated for xattr update case but not xattr create case. This
fix simply ports that code to create case.
Signed-off-by: Tariq Saeed <tariq.x.saeed@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/btrfs/hash.h')
0 files changed, 0 insertions, 0 deletions