~ubuntu-branches/ubuntu/utopic/aufs/utopic

« back to all changes in this revision

Viewing changes to fs/aufs/whout.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2007-06-04 15:17:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070604151703-ur9mjtbbpwoga2y6
Tags: 0+20070605-1
* New upstream snapshot
* Remove unionctl

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 */
18
18
 
19
 
/* $Id: whout.h,v 1.7 2007/04/09 02:46:28 sfjro Exp $ */
 
19
/* $Id: whout.h,v 1.9 2007/05/21 02:57:31 sfjro Exp $ */
20
20
 
21
21
#ifndef __AUFS_WHOUT_H__
22
22
#define __AUFS_WHOUT_H__
23
23
 
 
24
#ifdef __KERNEL__
 
25
 
24
26
#include <linux/fs.h>
25
27
#include <linux/aufs_type.h>
26
28
 
27
 
#ifdef __KERNEL__
28
 
 
29
29
int au_alloc_whname(const char *name, int len, struct qstr *wh);
30
30
void au_free_whname(struct qstr *wh);
31
31
 
53
53
                                struct dentry *h_parent,
54
54
                                struct lkup_args *lkup);
55
55
 
56
 
struct rmdir_whtmp_arg {
 
56
/* real rmdir the whiteout-ed dir */
 
57
struct rmdir_whtmp_args {
57
58
        struct dentry *h_dentry;
58
59
        struct aufs_nhash whlist;
59
60
        aufs_bindex_t bindex;
65
66
                aufs_bindex_t bindex, struct inode *dir, struct inode *inode);
66
67
void kick_rmdir_whtmp(struct dentry *h_dentry, struct aufs_nhash *whlist,
67
68
                      aufs_bindex_t bindex, struct inode *dir,
68
 
                      struct inode *inode, struct rmdir_whtmp_arg *arg);
 
69
                      struct inode *inode, struct rmdir_whtmp_args *args);
69
70
 
70
71
/* ---------------------------------------------------------------------- */
71
72
 
73
74
struct dentry *create_diropq(struct dentry *dentry, aufs_bindex_t bindex,
74
75
                             int dlgt)
75
76
{
76
 
        return sio_diropq(dentry, bindex, 1, dlgt);
 
77
        return sio_diropq(dentry, bindex, /*do_create*/1, dlgt);
77
78
}
78
79
 
79
80
static inline
80
81
int remove_diropq(struct dentry *dentry, aufs_bindex_t bindex, int dlgt)
81
82
{
82
 
        return PTR_ERR(sio_diropq(dentry, bindex, 0, dlgt));
 
83
        return PTR_ERR(sio_diropq(dentry, bindex, /*do_create*/0, dlgt));
83
84
}
84
85
 
85
86
#endif /* __KERNEL__ */