Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118751
b: refs/heads/master
c: 6c1e183
h: refs/heads/master
i:
  118749: 42fc8ef
  118747: 3f41a6c
  118743: 2e972d1
  118735: 1a0c2bc
  118719: 757b70d
v: v3
  • Loading branch information
Tiger Yang authored and Mark Fasheh committed Nov 10, 2008
1 parent ca3face commit c19cbac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de29c08528bae45e3fa1171d190f1340e37e0f70
refs/heads/master: 6c1e183e12dbd78a897a859f13220406296fee31
7 changes: 6 additions & 1 deletion trunk/fs/ocfs2/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,11 @@ static int ocfs2_xattr_block_get(struct inode *inode,
goto cleanup;
}

if (xs->not_found) {
ret = -ENODATA;
goto cleanup;
}

xb = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data;
size = le64_to_cpu(xs->here->xe_value_size);
if (buffer) {
Expand Down Expand Up @@ -860,7 +865,7 @@ static int ocfs2_xattr_get(struct inode *inode,
down_read(&oi->ip_xattr_sem);
ret = ocfs2_xattr_ibody_get(inode, name_index, name, buffer,
buffer_size, &xis);
if (ret == -ENODATA)
if (ret == -ENODATA && di->i_xattr_loc)
ret = ocfs2_xattr_block_get(inode, name_index, name, buffer,
buffer_size, &xbs);
up_read(&oi->ip_xattr_sem);
Expand Down

0 comments on commit c19cbac

Please sign in to comment.