diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-28 11:38:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-28 11:38:04 -0500 |
commit | bf3d846b783327359ddc4bd4f52627b36abb4d1d (patch) | |
tree | c6b8fddbf04a2962dfcf9f487af25033f11b10b9 /fs/nls/nls_base.c | |
parent | 54c0a4b46150db1571d955d598cd342c9f1d9657 (diff) | |
parent | f6500801522c61782d4990fa1ad96154cb397cd4 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs updates from Al Viro:
"Assorted stuff; the biggest pile here is Christoph's ACL series. Plus
assorted cleanups and fixes all over the place...
There will be another pile later this week"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (43 commits)
__dentry_path() fixes
vfs: Remove second variable named error in __dentry_path
vfs: Is mounted should be testing mnt_ns for NULL or error.
Fix race when checking i_size on direct i/o read
hfsplus: remove can_set_xattr
nfsd: use get_acl and ->set_acl
fs: remove generic_acl
nfs: use generic posix ACL infrastructure for v3 Posix ACLs
gfs2: use generic posix ACL infrastructure
jfs: use generic posix ACL infrastructure
xfs: use generic posix ACL infrastructure
reiserfs: use generic posix ACL infrastructure
ocfs2: use generic posix ACL infrastructure
jffs2: use generic posix ACL infrastructure
hfsplus: use generic posix ACL infrastructure
f2fs: use generic posix ACL infrastructure
ext2/3/4: use generic posix ACL infrastructure
btrfs: use generic posix ACL infrastructure
fs: make posix_acl_create more useful
fs: make posix_acl_chmod more useful
...
Diffstat (limited to 'fs/nls/nls_base.c')
-rw-r--r-- | fs/nls/nls_base.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c index fea6bd5831dc..52ccd34b1e79 100644 --- a/fs/nls/nls_base.c +++ b/fs/nls/nls_base.c | |||
@@ -232,13 +232,14 @@ int utf16s_to_utf8s(const wchar_t *pwcs, int inlen, enum utf16_endian endian, | |||
232 | } | 232 | } |
233 | EXPORT_SYMBOL(utf16s_to_utf8s); | 233 | EXPORT_SYMBOL(utf16s_to_utf8s); |
234 | 234 | ||
235 | int register_nls(struct nls_table * nls) | 235 | int __register_nls(struct nls_table *nls, struct module *owner) |
236 | { | 236 | { |
237 | struct nls_table ** tmp = &tables; | 237 | struct nls_table ** tmp = &tables; |
238 | 238 | ||
239 | if (nls->next) | 239 | if (nls->next) |
240 | return -EBUSY; | 240 | return -EBUSY; |
241 | 241 | ||
242 | nls->owner = owner; | ||
242 | spin_lock(&nls_lock); | 243 | spin_lock(&nls_lock); |
243 | while (*tmp) { | 244 | while (*tmp) { |
244 | if (nls == *tmp) { | 245 | if (nls == *tmp) { |
@@ -252,6 +253,7 @@ int register_nls(struct nls_table * nls) | |||
252 | spin_unlock(&nls_lock); | 253 | spin_unlock(&nls_lock); |
253 | return 0; | 254 | return 0; |
254 | } | 255 | } |
256 | EXPORT_SYMBOL(__register_nls); | ||
255 | 257 | ||
256 | int unregister_nls(struct nls_table * nls) | 258 | int unregister_nls(struct nls_table * nls) |
257 | { | 259 | { |
@@ -538,7 +540,6 @@ struct nls_table *load_nls_default(void) | |||
538 | return &default_table; | 540 | return &default_table; |
539 | } | 541 | } |
540 | 542 | ||
541 | EXPORT_SYMBOL(register_nls); | ||
542 | EXPORT_SYMBOL(unregister_nls); | 543 | EXPORT_SYMBOL(unregister_nls); |
543 | EXPORT_SYMBOL(unload_nls); | 544 | EXPORT_SYMBOL(unload_nls); |
544 | EXPORT_SYMBOL(load_nls); | 545 | EXPORT_SYMBOL(load_nls); |