diff options
-rw-r--r-- | fs/ceph/xattr.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index e29c7d3fa405..46be30d6d127 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c | |||
@@ -33,49 +33,49 @@ struct ceph_vxattr { | |||
33 | 33 | ||
34 | /* directories */ | 34 | /* directories */ |
35 | 35 | ||
36 | static size_t ceph_vxattrcb_entries(struct ceph_inode_info *ci, char *val, | 36 | static size_t ceph_vxattrcb_dir_entries(struct ceph_inode_info *ci, char *val, |
37 | size_t size) | 37 | size_t size) |
38 | { | 38 | { |
39 | return snprintf(val, size, "%lld", ci->i_files + ci->i_subdirs); | 39 | return snprintf(val, size, "%lld", ci->i_files + ci->i_subdirs); |
40 | } | 40 | } |
41 | 41 | ||
42 | static size_t ceph_vxattrcb_files(struct ceph_inode_info *ci, char *val, | 42 | static size_t ceph_vxattrcb_dir_files(struct ceph_inode_info *ci, char *val, |
43 | size_t size) | 43 | size_t size) |
44 | { | 44 | { |
45 | return snprintf(val, size, "%lld", ci->i_files); | 45 | return snprintf(val, size, "%lld", ci->i_files); |
46 | } | 46 | } |
47 | 47 | ||
48 | static size_t ceph_vxattrcb_subdirs(struct ceph_inode_info *ci, char *val, | 48 | static size_t ceph_vxattrcb_dir_subdirs(struct ceph_inode_info *ci, char *val, |
49 | size_t size) | 49 | size_t size) |
50 | { | 50 | { |
51 | return snprintf(val, size, "%lld", ci->i_subdirs); | 51 | return snprintf(val, size, "%lld", ci->i_subdirs); |
52 | } | 52 | } |
53 | 53 | ||
54 | static size_t ceph_vxattrcb_rentries(struct ceph_inode_info *ci, char *val, | 54 | static size_t ceph_vxattrcb_dir_rentries(struct ceph_inode_info *ci, char *val, |
55 | size_t size) | 55 | size_t size) |
56 | { | 56 | { |
57 | return snprintf(val, size, "%lld", ci->i_rfiles + ci->i_rsubdirs); | 57 | return snprintf(val, size, "%lld", ci->i_rfiles + ci->i_rsubdirs); |
58 | } | 58 | } |
59 | 59 | ||
60 | static size_t ceph_vxattrcb_rfiles(struct ceph_inode_info *ci, char *val, | 60 | static size_t ceph_vxattrcb_dir_rfiles(struct ceph_inode_info *ci, char *val, |
61 | size_t size) | 61 | size_t size) |
62 | { | 62 | { |
63 | return snprintf(val, size, "%lld", ci->i_rfiles); | 63 | return snprintf(val, size, "%lld", ci->i_rfiles); |
64 | } | 64 | } |
65 | 65 | ||
66 | static size_t ceph_vxattrcb_rsubdirs(struct ceph_inode_info *ci, char *val, | 66 | static size_t ceph_vxattrcb_dir_rsubdirs(struct ceph_inode_info *ci, char *val, |
67 | size_t size) | 67 | size_t size) |
68 | { | 68 | { |
69 | return snprintf(val, size, "%lld", ci->i_rsubdirs); | 69 | return snprintf(val, size, "%lld", ci->i_rsubdirs); |
70 | } | 70 | } |
71 | 71 | ||
72 | static size_t ceph_vxattrcb_rbytes(struct ceph_inode_info *ci, char *val, | 72 | static size_t ceph_vxattrcb_dir_rbytes(struct ceph_inode_info *ci, char *val, |
73 | size_t size) | 73 | size_t size) |
74 | { | 74 | { |
75 | return snprintf(val, size, "%lld", ci->i_rbytes); | 75 | return snprintf(val, size, "%lld", ci->i_rbytes); |
76 | } | 76 | } |
77 | 77 | ||
78 | static size_t ceph_vxattrcb_rctime(struct ceph_inode_info *ci, char *val, | 78 | static size_t ceph_vxattrcb_dir_rctime(struct ceph_inode_info *ci, char *val, |
79 | size_t size) | 79 | size_t size) |
80 | { | 80 | { |
81 | return snprintf(val, size, "%ld.%ld", (long)ci->i_rctime.tv_sec, | 81 | return snprintf(val, size, "%ld.%ld", (long)ci->i_rctime.tv_sec, |
@@ -87,7 +87,7 @@ static size_t ceph_vxattrcb_rctime(struct ceph_inode_info *ci, char *val, | |||
87 | #define XATTR_NAME_CEPH(_type, _name) \ | 87 | #define XATTR_NAME_CEPH(_type, _name) \ |
88 | { \ | 88 | { \ |
89 | .name = CEPH_XATTR_NAME(_type, _name), \ | 89 | .name = CEPH_XATTR_NAME(_type, _name), \ |
90 | .getxattr_cb = ceph_vxattrcb_ ## _name, \ | 90 | .getxattr_cb = ceph_vxattrcb_ ## _type ## _ ## _name, \ |
91 | .readonly = true, \ | 91 | .readonly = true, \ |
92 | } | 92 | } |
93 | 93 | ||
@@ -105,7 +105,7 @@ static struct ceph_vxattr ceph_dir_vxattrs[] = { | |||
105 | 105 | ||
106 | /* files */ | 106 | /* files */ |
107 | 107 | ||
108 | static size_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, | 108 | static size_t ceph_vxattrcb_file_layout(struct ceph_inode_info *ci, char *val, |
109 | size_t size) | 109 | size_t size) |
110 | { | 110 | { |
111 | int ret; | 111 | int ret; |
@@ -127,7 +127,7 @@ static struct ceph_vxattr ceph_file_vxattrs[] = { | |||
127 | /* The following extended attribute name is deprecated */ | 127 | /* The following extended attribute name is deprecated */ |
128 | { | 128 | { |
129 | .name = XATTR_CEPH_PREFIX "layout", | 129 | .name = XATTR_CEPH_PREFIX "layout", |
130 | .getxattr_cb = ceph_vxattrcb_layout, | 130 | .getxattr_cb = ceph_vxattrcb_file_layout, |
131 | .readonly = true, | 131 | .readonly = true, |
132 | }, | 132 | }, |
133 | { 0 } /* Required table terminator */ | 133 | { 0 } /* Required table terminator */ |