nilfs.h (ea77f7a2e8561012cf100c530170f12351c3b53e) nilfs.h (aa38572954ade525817fe88c54faebf85e5a61c0)
1/*
2 * nilfs.h - NILFS local header file.
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 66 unchanged lines hidden (view full) ---

75
76static inline struct inode *NILFS_BTNC_I(struct address_space *btnc)
77{
78 struct nilfs_inode_info *ii =
79 container_of(btnc, struct nilfs_inode_info, i_btnode_cache);
80 return &ii->vfs_inode;
81}
82
1/*
2 * nilfs.h - NILFS local header file.
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 66 unchanged lines hidden (view full) ---

75
76static inline struct inode *NILFS_BTNC_I(struct address_space *btnc)
77{
78 struct nilfs_inode_info *ii =
79 container_of(btnc, struct nilfs_inode_info, i_btnode_cache);
80 return &ii->vfs_inode;
81}
82
83static inline struct inode *NILFS_AS_I(struct address_space *mapping)
84{
85 return (mapping->host) ? :
86 container_of(mapping, struct inode, i_data);
87}
88
89/*
90 * Dynamic state flags of NILFS on-memory inode (i_state)
91 */
92enum {
93 NILFS_I_NEW = 0, /* Inode is newly created */
94 NILFS_I_DIRTY, /* The file is dirty */
95 NILFS_I_QUEUED, /* inode is in dirty_files list */
96 NILFS_I_BUSY, /* inode is grabbed by a segment

--- 173 unchanged lines hidden (view full) ---

270extern void nilfs_truncate(struct inode *);
271extern void nilfs_evict_inode(struct inode *);
272extern int nilfs_setattr(struct dentry *, struct iattr *);
273int nilfs_permission(struct inode *inode, int mask, unsigned int flags);
274int nilfs_load_inode_block(struct inode *inode, struct buffer_head **pbh);
275extern int nilfs_inode_dirty(struct inode *);
276int nilfs_set_file_dirty(struct inode *inode, unsigned nr_dirty);
277extern int nilfs_mark_inode_dirty(struct inode *);
83/*
84 * Dynamic state flags of NILFS on-memory inode (i_state)
85 */
86enum {
87 NILFS_I_NEW = 0, /* Inode is newly created */
88 NILFS_I_DIRTY, /* The file is dirty */
89 NILFS_I_QUEUED, /* inode is in dirty_files list */
90 NILFS_I_BUSY, /* inode is grabbed by a segment

--- 173 unchanged lines hidden (view full) ---

264extern void nilfs_truncate(struct inode *);
265extern void nilfs_evict_inode(struct inode *);
266extern int nilfs_setattr(struct dentry *, struct iattr *);
267int nilfs_permission(struct inode *inode, int mask, unsigned int flags);
268int nilfs_load_inode_block(struct inode *inode, struct buffer_head **pbh);
269extern int nilfs_inode_dirty(struct inode *);
270int nilfs_set_file_dirty(struct inode *inode, unsigned nr_dirty);
271extern int nilfs_mark_inode_dirty(struct inode *);
278extern void nilfs_dirty_inode(struct inode *);
272extern void nilfs_dirty_inode(struct inode *, int flags);
279int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
280 __u64 start, __u64 len);
281
282/* super.c */
283extern struct inode *nilfs_alloc_inode(struct super_block *);
284extern void nilfs_destroy_inode(struct inode *);
285extern void nilfs_error(struct super_block *, const char *, const char *, ...)
286 __attribute__ ((format (printf, 3, 4)));

--- 6 unchanged lines hidden (view full) ---

293extern int nilfs_check_feature_compatibility(struct super_block *,
294 struct nilfs_super_block *);
295extern void nilfs_set_log_cursor(struct nilfs_super_block *,
296 struct the_nilfs *);
297struct nilfs_super_block **nilfs_prepare_super(struct super_block *sb,
298 int flip);
299int nilfs_commit_super(struct super_block *sb, int flag);
300int nilfs_cleanup_super(struct super_block *sb);
273int nilfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
274 __u64 start, __u64 len);
275
276/* super.c */
277extern struct inode *nilfs_alloc_inode(struct super_block *);
278extern void nilfs_destroy_inode(struct inode *);
279extern void nilfs_error(struct super_block *, const char *, const char *, ...)
280 __attribute__ ((format (printf, 3, 4)));

--- 6 unchanged lines hidden (view full) ---

287extern int nilfs_check_feature_compatibility(struct super_block *,
288 struct nilfs_super_block *);
289extern void nilfs_set_log_cursor(struct nilfs_super_block *,
290 struct the_nilfs *);
291struct nilfs_super_block **nilfs_prepare_super(struct super_block *sb,
292 int flip);
293int nilfs_commit_super(struct super_block *sb, int flag);
294int nilfs_cleanup_super(struct super_block *sb);
295int nilfs_resize_fs(struct super_block *sb, __u64 newsize);
301int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
302 struct nilfs_root **root);
303int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
304
305/* gcinode.c */
306int nilfs_gccache_submit_read_data(struct inode *, sector_t, sector_t, __u64,
307 struct buffer_head **);
308int nilfs_gccache_submit_read_node(struct inode *, sector_t, __u64,

--- 23 unchanged lines hidden ---
296int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
297 struct nilfs_root **root);
298int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
299
300/* gcinode.c */
301int nilfs_gccache_submit_read_data(struct inode *, sector_t, sector_t, __u64,
302 struct buffer_head **);
303int nilfs_gccache_submit_read_node(struct inode *, sector_t, __u64,

--- 23 unchanged lines hidden ---