diff options
author | Mingming Cao <cmm@us.ibm.com> | 2006-10-11 04:20:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:15 -0400 |
commit | 617ba13b31fbf505cc21799826639ef24ed94af0 (patch) | |
tree | 2a41e8c993f7c1eed115ad24047d546ba56cbdf5 /fs/ext4/xattr_security.c | |
parent | ac27a0ec112a089f1a5102bc8dffc79c8c815571 (diff) |
[PATCH] ext4: rename ext4 symbols to avoid duplication of ext3 symbols
Mingming Cao originally did this work, and Shaggy reproduced it using some
scripts from her.
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext4/xattr_security.c')
-rw-r--r-- | fs/ext4/xattr_security.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/fs/ext4/xattr_security.c b/fs/ext4/xattr_security.c index b9c40c15647b..d84b1dabeb16 100644 --- a/fs/ext4/xattr_security.c +++ b/fs/ext4/xattr_security.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/fs/ext3/xattr_security.c | 2 | * linux/fs/ext4/xattr_security.c |
3 | * Handler for storing security labels as extended attributes. | 3 | * Handler for storing security labels as extended attributes. |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -7,13 +7,13 @@ | |||
7 | #include <linux/string.h> | 7 | #include <linux/string.h> |
8 | #include <linux/fs.h> | 8 | #include <linux/fs.h> |
9 | #include <linux/smp_lock.h> | 9 | #include <linux/smp_lock.h> |
10 | #include <linux/ext3_jbd.h> | 10 | #include <linux/ext4_jbd.h> |
11 | #include <linux/ext3_fs.h> | 11 | #include <linux/ext4_fs.h> |
12 | #include <linux/security.h> | 12 | #include <linux/security.h> |
13 | #include "xattr.h" | 13 | #include "xattr.h" |
14 | 14 | ||
15 | static size_t | 15 | static size_t |
16 | ext3_xattr_security_list(struct inode *inode, char *list, size_t list_size, | 16 | ext4_xattr_security_list(struct inode *inode, char *list, size_t list_size, |
17 | const char *name, size_t name_len) | 17 | const char *name, size_t name_len) |
18 | { | 18 | { |
19 | const size_t prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1; | 19 | const size_t prefix_len = sizeof(XATTR_SECURITY_PREFIX)-1; |
@@ -29,27 +29,27 @@ ext3_xattr_security_list(struct inode *inode, char *list, size_t list_size, | |||
29 | } | 29 | } |
30 | 30 | ||
31 | static int | 31 | static int |
32 | ext3_xattr_security_get(struct inode *inode, const char *name, | 32 | ext4_xattr_security_get(struct inode *inode, const char *name, |
33 | void *buffer, size_t size) | 33 | void *buffer, size_t size) |
34 | { | 34 | { |
35 | if (strcmp(name, "") == 0) | 35 | if (strcmp(name, "") == 0) |
36 | return -EINVAL; | 36 | return -EINVAL; |
37 | return ext3_xattr_get(inode, EXT3_XATTR_INDEX_SECURITY, name, | 37 | return ext4_xattr_get(inode, EXT4_XATTR_INDEX_SECURITY, name, |
38 | buffer, size); | 38 | buffer, size); |
39 | } | 39 | } |
40 | 40 | ||
41 | static int | 41 | static int |
42 | ext3_xattr_security_set(struct inode *inode, const char *name, | 42 | ext4_xattr_security_set(struct inode *inode, const char *name, |
43 | const void *value, size_t size, int flags) | 43 | const void *value, size_t size, int flags) |
44 | { | 44 | { |
45 | if (strcmp(name, "") == 0) | 45 | if (strcmp(name, "") == 0) |
46 | return -EINVAL; | 46 | return -EINVAL; |
47 | return ext3_xattr_set(inode, EXT3_XATTR_INDEX_SECURITY, name, | 47 | return ext4_xattr_set(inode, EXT4_XATTR_INDEX_SECURITY, name, |
48 | value, size, flags); | 48 | value, size, flags); |
49 | } | 49 | } |
50 | 50 | ||
51 | int | 51 | int |
52 | ext3_init_security(handle_t *handle, struct inode *inode, struct inode *dir) | 52 | ext4_init_security(handle_t *handle, struct inode *inode, struct inode *dir) |
53 | { | 53 | { |
54 | int err; | 54 | int err; |
55 | size_t len; | 55 | size_t len; |
@@ -62,16 +62,16 @@ ext3_init_security(handle_t *handle, struct inode *inode, struct inode *dir) | |||
62 | return 0; | 62 | return 0; |
63 | return err; | 63 | return err; |
64 | } | 64 | } |
65 | err = ext3_xattr_set_handle(handle, inode, EXT3_XATTR_INDEX_SECURITY, | 65 | err = ext4_xattr_set_handle(handle, inode, EXT4_XATTR_INDEX_SECURITY, |
66 | name, value, len, 0); | 66 | name, value, len, 0); |
67 | kfree(name); | 67 | kfree(name); |
68 | kfree(value); | 68 | kfree(value); |
69 | return err; | 69 | return err; |
70 | } | 70 | } |
71 | 71 | ||
72 | struct xattr_handler ext3_xattr_security_handler = { | 72 | struct xattr_handler ext4_xattr_security_handler = { |
73 | .prefix = XATTR_SECURITY_PREFIX, | 73 | .prefix = XATTR_SECURITY_PREFIX, |
74 | .list = ext3_xattr_security_list, | 74 | .list = ext4_xattr_security_list, |
75 | .get = ext3_xattr_security_get, | 75 | .get = ext4_xattr_security_get, |
76 | .set = ext3_xattr_security_set, | 76 | .set = ext4_xattr_security_set, |
77 | }; | 77 | }; |