btrfs: code optimize: BTRFS_ATTR_RW could set the mode

BTRFS_ATTR_RW could set the mode and be inline with BTRFS_ATTR

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
Anand Jain
2014-07-30 20:04:09 +08:00
committed by Chris Mason
parent 98b3d389eb
commit 20ee0825ec
2 changed files with 5 additions and 4 deletions

View File

@@ -401,7 +401,7 @@ static ssize_t btrfs_label_store(struct kobject *kobj,
return ret;
}
BTRFS_ATTR_RW(label, 0644, btrfs_label_show, btrfs_label_store);
BTRFS_ATTR_RW(label, btrfs_label_show, btrfs_label_store);
static ssize_t btrfs_nodesize_show(struct kobject *kobj,
struct kobj_attribute *a, char *buf)