aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/bcache/sysfs.h
diff options
context:
space:
mode:
authorColy Li2018-08-11 13:19:48 +0800
committerJens Axboe2018-08-11 15:46:41 -0600
commit958bf494ecf0a6755309569a9083bf123d6e3754 (patch)
treecdb9a61a71fb379bcce61d40ea443cf2eb672011 /drivers/md/bcache/sysfs.h
parentb0d30981c05f32d8cc032b209408ca3224f05f36 (diff)
bcache: replace Symbolic permissions by octal permission numbers
Symbolic permission names are used in bcache, for now octal permission numbers are encouraged to use for readability. This patch replaces all symbolic permissions by octal permission numbers. Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/sysfs.h')
-rw-r--r--drivers/md/bcache/sysfs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/bcache/sysfs.h b/drivers/md/bcache/sysfs.h
index b54fe9602529..3fe82425859c 100644
--- a/drivers/md/bcache/sysfs.h
+++ b/drivers/md/bcache/sysfs.h
@@ -44,9 +44,9 @@ STORE(fn) \
static struct attribute sysfs_##_name = \
{ .name = #_name, .mode = _mode }
-#define write_attribute(n) __sysfs_attribute(n, S_IWUSR)
-#define read_attribute(n) __sysfs_attribute(n, S_IRUGO)
-#define rw_attribute(n) __sysfs_attribute(n, S_IRUGO|S_IWUSR)
+#define write_attribute(n) __sysfs_attribute(n, 0200)
+#define read_attribute(n) __sysfs_attribute(n, 0444)
+#define rw_attribute(n) __sysfs_attribute(n, 0644)
#define sysfs_printf(file, fmt, ...) \
do { \