aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorYan, Zheng <zheng.yan@oracle.com>2009-11-12 04:35:27 -0500
committerChris Mason <chris.mason@oracle.com>2009-12-17 12:33:34 -0500
commitf34f57a3ab4e73304d78c125682f1a53cd3975f2 (patch)
tree359aff6491d3e92b3901ea78dc164d41209d3eea /fs/btrfs/ctree.h
parent8082510e7124cc50d728f1b875639cb4e22312cc (diff)
Btrfs: Pass transaction handle to security and ACL initialization functions
Pass transaction handle down to security and ACL initialization functions, so we can avoid starting nested transactions Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index fcfbefbbb685..a7cac2148c7c 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -310,6 +310,9 @@ struct btrfs_header {
310#define BTRFS_MAX_INLINE_DATA_SIZE(r) (BTRFS_LEAF_DATA_SIZE(r) - \ 310#define BTRFS_MAX_INLINE_DATA_SIZE(r) (BTRFS_LEAF_DATA_SIZE(r) - \
311 sizeof(struct btrfs_item) - \ 311 sizeof(struct btrfs_item) - \
312 sizeof(struct btrfs_file_extent_item)) 312 sizeof(struct btrfs_file_extent_item))
313#define BTRFS_MAX_XATTR_SIZE(r) (BTRFS_LEAF_DATA_SIZE(r) - \
314 sizeof(struct btrfs_item) -\
315 sizeof(struct btrfs_dir_item))
313 316
314 317
315/* 318/*
@@ -2201,9 +2204,10 @@ int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
2201 struct btrfs_path *path, 2204 struct btrfs_path *path,
2202 struct btrfs_dir_item *di); 2205 struct btrfs_dir_item *di);
2203int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, 2206int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
2204 struct btrfs_root *root, const char *name, 2207 struct btrfs_root *root,
2205 u16 name_len, const void *data, u16 data_len, 2208 struct btrfs_path *path, u64 objectid,
2206 u64 dir); 2209 const char *name, u16 name_len,
2210 const void *data, u16 data_len);
2207struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, 2211struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,
2208 struct btrfs_root *root, 2212 struct btrfs_root *root,
2209 struct btrfs_path *path, u64 dir, 2213 struct btrfs_path *path, u64 dir,
@@ -2382,7 +2386,8 @@ int btrfs_check_acl(struct inode *inode, int mask);
2382#else 2386#else
2383#define btrfs_check_acl NULL 2387#define btrfs_check_acl NULL
2384#endif 2388#endif
2385int btrfs_init_acl(struct inode *inode, struct inode *dir); 2389int btrfs_init_acl(struct btrfs_trans_handle *trans,
2390 struct inode *inode, struct inode *dir);
2386int btrfs_acl_chmod(struct inode *inode); 2391int btrfs_acl_chmod(struct inode *inode);
2387 2392
2388/* relocation.c */ 2393/* relocation.c */