diff options
author | Tiger Yang <tiger.yang@oracle.com> | 2008-10-23 04:33:33 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-11-10 12:51:44 -0500 |
commit | 0030e001505d2d1503c083c917a747c033eaf8cd (patch) | |
tree | 03c08d7cadeddc8c597ff0054da49e3bb1cfd278 /fs/ocfs2/xattr.h | |
parent | c3cb6827353102fee62f3b9401a03ee29b297e5b (diff) |
ocfs2: fix function declaration and definition in xattr
Because we merged the xattr sources into one file, some functions
no longer belong in the header file.
Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/xattr.h')
-rw-r--r-- | fs/ocfs2/xattr.h | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/fs/ocfs2/xattr.h b/fs/ocfs2/xattr.h index e4e45c81a261..1d8314c7656d 100644 --- a/fs/ocfs2/xattr.h +++ b/fs/ocfs2/xattr.h | |||
@@ -32,29 +32,11 @@ enum ocfs2_xattr_type { | |||
32 | 32 | ||
33 | extern struct xattr_handler ocfs2_xattr_user_handler; | 33 | extern struct xattr_handler ocfs2_xattr_user_handler; |
34 | extern struct xattr_handler ocfs2_xattr_trusted_handler; | 34 | extern struct xattr_handler ocfs2_xattr_trusted_handler; |
35 | |||
36 | extern ssize_t ocfs2_listxattr(struct dentry *, char *, size_t); | ||
37 | extern int ocfs2_xattr_get(struct inode *, int, const char *, void *, size_t); | ||
38 | extern int ocfs2_xattr_set(struct inode *, int, const char *, const void *, | ||
39 | size_t, int); | ||
40 | extern int ocfs2_xattr_remove(struct inode *inode, struct buffer_head *di_bh); | ||
41 | extern struct xattr_handler *ocfs2_xattr_handlers[]; | 35 | extern struct xattr_handler *ocfs2_xattr_handlers[]; |
42 | 36 | ||
43 | static inline u16 ocfs2_xattr_buckets_per_cluster(struct ocfs2_super *osb) | 37 | ssize_t ocfs2_listxattr(struct dentry *, char *, size_t); |
44 | { | 38 | int ocfs2_xattr_set(struct inode *, int, const char *, const void *, |
45 | return (1 << osb->s_clustersize_bits) / OCFS2_XATTR_BUCKET_SIZE; | 39 | size_t, int); |
46 | } | 40 | int ocfs2_xattr_remove(struct inode *, struct buffer_head *); |
47 | |||
48 | static inline u16 ocfs2_blocks_per_xattr_bucket(struct super_block *sb) | ||
49 | { | ||
50 | return OCFS2_XATTR_BUCKET_SIZE / (1 << sb->s_blocksize_bits); | ||
51 | } | ||
52 | |||
53 | static inline u16 ocfs2_xattr_max_xe_in_bucket(struct super_block *sb) | ||
54 | { | ||
55 | u16 len = sb->s_blocksize - | ||
56 | offsetof(struct ocfs2_xattr_header, xh_entries); | ||
57 | 41 | ||
58 | return len / sizeof(struct ocfs2_xattr_entry); | ||
59 | } | ||
60 | #endif /* OCFS2_XATTR_H */ | 42 | #endif /* OCFS2_XATTR_H */ |