xattr.h (cf1d6c763fbcb115263114302485ad17e7933d87) | xattr.h (0c044f0b24b9128ba8c297149d88bd81f2e36af3) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * xattr.h 5 * 6 * Function prototypes 7 * 8 * Copyright (C) 2008 Oracle. All rights reserved. --- 34 unchanged lines hidden (view full) --- 43 44extern ssize_t ocfs2_listxattr(struct dentry *, char *, size_t); 45extern int ocfs2_xattr_get(struct inode *, int, const char *, void *, size_t); 46extern int ocfs2_xattr_set(struct inode *, int, const char *, const void *, 47 size_t, int); 48extern int ocfs2_xattr_remove(struct inode *inode, struct buffer_head *di_bh); 49extern struct xattr_handler *ocfs2_xattr_handlers[]; 50 | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * xattr.h 5 * 6 * Function prototypes 7 * 8 * Copyright (C) 2008 Oracle. All rights reserved. --- 34 unchanged lines hidden (view full) --- 43 44extern ssize_t ocfs2_listxattr(struct dentry *, char *, size_t); 45extern int ocfs2_xattr_get(struct inode *, int, const char *, void *, size_t); 46extern int ocfs2_xattr_set(struct inode *, int, const char *, const void *, 47 size_t, int); 48extern int ocfs2_xattr_remove(struct inode *inode, struct buffer_head *di_bh); 49extern struct xattr_handler *ocfs2_xattr_handlers[]; 50 |
51static inline u16 ocfs2_xattr_buckets_per_cluster(struct ocfs2_super *osb) 52{ 53 return (1 << osb->s_clustersize_bits) / OCFS2_XATTR_BUCKET_SIZE; 54} 55 56static inline u16 ocfs2_blocks_per_xattr_bucket(struct super_block *sb) 57{ 58 return OCFS2_XATTR_BUCKET_SIZE / (1 << sb->s_blocksize_bits); 59} |
|
51#endif /* OCFS2_XATTR_H */ | 60#endif /* OCFS2_XATTR_H */ |