diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:37 -0400 |
commit | 0030b64570c862f04c1550ba4a0bf7a9c128162a (patch) | |
tree | 811b8eec4a417983ad1e5b51f44194f9cc98496d /fs/reiserfs/xattr.c | |
parent | 1e5e59d431038c53954fe8f0b38bee0f0ad30349 (diff) |
reiserfs: use reiserfs_error()
This patch makes many paths that are currently using warnings to handle
the error.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r-- | fs/reiserfs/xattr.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c index d14f5c2c0e4a..bab77fe5f177 100644 --- a/fs/reiserfs/xattr.c +++ b/fs/reiserfs/xattr.c | |||
@@ -259,8 +259,8 @@ static int __xattr_readdir(struct inode *inode, void *dirent, filldir_t filldir) | |||
259 | ih = de.de_ih; | 259 | ih = de.de_ih; |
260 | 260 | ||
261 | if (!is_direntry_le_ih(ih)) { | 261 | if (!is_direntry_le_ih(ih)) { |
262 | reiserfs_warning(inode->i_sb, "jdm-20000", | 262 | reiserfs_error(inode->i_sb, "jdm-20000", |
263 | "not direntry %h", ih); | 263 | "not direntry %h", ih); |
264 | break; | 264 | break; |
265 | } | 265 | } |
266 | copy_item_head(&tmp_ih, ih); | 266 | copy_item_head(&tmp_ih, ih); |
@@ -653,15 +653,14 @@ __reiserfs_xattr_del(struct dentry *xadir, const char *name, int namelen) | |||
653 | goto out_file; | 653 | goto out_file; |
654 | 654 | ||
655 | if (!is_reiserfs_priv_object(dentry->d_inode)) { | 655 | if (!is_reiserfs_priv_object(dentry->d_inode)) { |
656 | reiserfs_warning(dir->i_sb, "jdm-20003", | 656 | reiserfs_error(dir->i_sb, "jdm-20003", |
657 | "OID %08x [%.*s/%.*s] doesn't have " | 657 | "OID %08x [%.*s/%.*s] doesn't have " |
658 | "priv flag set [parent is %sset].", | 658 | "priv flag set [parent is %sset].", |
659 | le32_to_cpu(INODE_PKEY(dentry->d_inode)-> | 659 | le32_to_cpu(INODE_PKEY(dentry->d_inode)-> |
660 | k_objectid), xadir->d_name.len, | 660 | k_objectid), xadir->d_name.len, |
661 | xadir->d_name.name, namelen, name, | 661 | xadir->d_name.name, namelen, name, |
662 | is_reiserfs_priv_object(xadir-> | 662 | is_reiserfs_priv_object(xadir->d_inode) ? "" : |
663 | d_inode) ? "" : | 663 | "not "); |
664 | "not "); | ||
665 | dput(dentry); | 664 | dput(dentry); |
666 | return -EIO; | 665 | return -EIO; |
667 | } | 666 | } |