aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/xattr.c')
-rw-r--r--fs/ubifs/xattr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c
index 85b272268754..0f7139bdb2c2 100644
--- a/fs/ubifs/xattr.c
+++ b/fs/ubifs/xattr.c
@@ -298,7 +298,7 @@ int ubifs_setxattr(struct dentry *dentry, const char *name,
298{ 298{
299 struct inode *inode, *host = dentry->d_inode; 299 struct inode *inode, *host = dentry->d_inode;
300 struct ubifs_info *c = host->i_sb->s_fs_info; 300 struct ubifs_info *c = host->i_sb->s_fs_info;
301 struct qstr nm = { .name = name, .len = strlen(name) }; 301 struct qstr nm = QSTR_INIT(name, strlen(name));
302 struct ubifs_dent_node *xent; 302 struct ubifs_dent_node *xent;
303 union ubifs_key key; 303 union ubifs_key key;
304 int err, type; 304 int err, type;
@@ -361,7 +361,7 @@ ssize_t ubifs_getxattr(struct dentry *dentry, const char *name, void *buf,
361{ 361{
362 struct inode *inode, *host = dentry->d_inode; 362 struct inode *inode, *host = dentry->d_inode;
363 struct ubifs_info *c = host->i_sb->s_fs_info; 363 struct ubifs_info *c = host->i_sb->s_fs_info;
364 struct qstr nm = { .name = name, .len = strlen(name) }; 364 struct qstr nm = QSTR_INIT(name, strlen(name));
365 struct ubifs_inode *ui; 365 struct ubifs_inode *ui;
366 struct ubifs_dent_node *xent; 366 struct ubifs_dent_node *xent;
367 union ubifs_key key; 367 union ubifs_key key;
@@ -399,8 +399,8 @@ ssize_t ubifs_getxattr(struct dentry *dentry, const char *name, void *buf,
399 if (buf) { 399 if (buf) {
400 /* If @buf is %NULL we are supposed to return the length */ 400 /* If @buf is %NULL we are supposed to return the length */
401 if (ui->data_len > size) { 401 if (ui->data_len > size) {
402 dbg_err("buffer size %zd, xattr len %d", 402 ubifs_err("buffer size %zd, xattr len %d",
403 size, ui->data_len); 403 size, ui->data_len);
404 err = -ERANGE; 404 err = -ERANGE;
405 goto out_iput; 405 goto out_iput;
406 } 406 }
@@ -524,7 +524,7 @@ int ubifs_removexattr(struct dentry *dentry, const char *name)
524{ 524{
525 struct inode *inode, *host = dentry->d_inode; 525 struct inode *inode, *host = dentry->d_inode;
526 struct ubifs_info *c = host->i_sb->s_fs_info; 526 struct ubifs_info *c = host->i_sb->s_fs_info;
527 struct qstr nm = { .name = name, .len = strlen(name) }; 527 struct qstr nm = QSTR_INIT(name, strlen(name));
528 struct ubifs_dent_node *xent; 528 struct ubifs_dent_node *xent;
529 union ubifs_key key; 529 union ubifs_key key;
530 int err; 530 int err;