Blame view

fs/jfs/jfs_acl.h 1.22 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
  /*
63f83c9fc   Dave Kleikamp   JFS: White space ...
2
   *   Copyright (C) International Business Machines  Corp., 2002
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3
4
5
   *
   *   This program is free software;  you can redistribute it and/or modify
   *   it under the terms of the GNU General Public License as published by
63f83c9fc   Dave Kleikamp   JFS: White space ...
6
   *   the Free Software Foundation; either version 2 of the License, or
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
   *   (at your option) any later version.
63f83c9fc   Dave Kleikamp   JFS: White space ...
8
   *
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
9
10
11
12
13
14
   *   This program is distributed in the hope that it will be useful,
   *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
   *   the GNU General Public License for more details.
   *
   *   You should have received a copy of the GNU General Public License
63f83c9fc   Dave Kleikamp   JFS: White space ...
15
   *   along with this program;  if not, write to the Free Software
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
16
17
18
19
20
21
   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
   */
  #ifndef _H_JFS_ACL
  #define _H_JFS_ACL
  
  #ifdef CONFIG_JFS_POSIX_ACL
4e34e719e   Christoph Hellwig   fs: take the ACL ...
22
  struct posix_acl *jfs_get_acl(struct inode *inode, int type);
4f4b401bf   Dave Kleikamp   JFS: allow extend...
23
  int jfs_init_acl(tid_t, struct inode *, struct inode *);
759bfee65   Christoph Hellwig   dquot: move dquot...
24
  int jfs_acl_chmod(struct inode *inode);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
25

4f4b401bf   Dave Kleikamp   JFS: allow extend...
26
27
28
29
30
31
32
  #else
  
  static inline int jfs_init_acl(tid_t tid, struct inode *inode,
  			       struct inode *dir)
  {
  	return 0;
  }
759bfee65   Christoph Hellwig   dquot: move dquot...
33
34
35
36
  static inline int jfs_acl_chmod(struct inode *inode)
  {
  	return 0;
  }
4f4b401bf   Dave Kleikamp   JFS: allow extend...
37
  #endif
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
38
  #endif		/* _H_JFS_ACL */