xfs_inode.h (df9b42963f2d010ae3163a894ce22cf6b27cd344) xfs_inode.h (33479e0542df066fb0b47df18780e93bfe6e0dc5)
1/*
2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *

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

491 * For multiple groups support: if S_ISGID bit is set in the parent
492 * directory, group of new file is set to that of the parent, and
493 * new subdirectory gets S_ISGID bit from parent.
494 */
495#define XFS_INHERIT_GID(pip) \
496 (((pip)->i_mount->m_flags & XFS_MOUNT_GRPID) || \
497 ((pip)->i_d.di_mode & S_ISGID))
498
1/*
2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *

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

491 * For multiple groups support: if S_ISGID bit is set in the parent
492 * directory, group of new file is set to that of the parent, and
493 * new subdirectory gets S_ISGID bit from parent.
494 */
495#define XFS_INHERIT_GID(pip) \
496 (((pip)->i_mount->m_flags & XFS_MOUNT_GRPID) || \
497 ((pip)->i_d.di_mode & S_ISGID))
498
499
499/*
500/*
500 * xfs_iget.c prototypes.
501 * xfs_inode.c prototypes.
501 */
502 */
502int xfs_iget(struct xfs_mount *, struct xfs_trans *, xfs_ino_t,
503 uint, uint, xfs_inode_t **);
504void xfs_ilock(xfs_inode_t *, uint);
505int xfs_ilock_nowait(xfs_inode_t *, uint);
506void xfs_iunlock(xfs_inode_t *, uint);
507void xfs_ilock_demote(xfs_inode_t *, uint);
508int xfs_isilocked(xfs_inode_t *, uint);
509uint xfs_ilock_map_shared(xfs_inode_t *);
510void xfs_iunlock_map_shared(xfs_inode_t *, uint);
503void xfs_ilock(xfs_inode_t *, uint);
504int xfs_ilock_nowait(xfs_inode_t *, uint);
505void xfs_iunlock(xfs_inode_t *, uint);
506void xfs_ilock_demote(xfs_inode_t *, uint);
507int xfs_isilocked(xfs_inode_t *, uint);
508uint xfs_ilock_map_shared(xfs_inode_t *);
509void xfs_iunlock_map_shared(xfs_inode_t *, uint);
511void xfs_inode_free(struct xfs_inode *ip);
512
513/*
514 * xfs_inode.c prototypes.
515 */
516int xfs_ialloc(struct xfs_trans *, xfs_inode_t *, umode_t,
517 xfs_nlink_t, xfs_dev_t, prid_t, int,
518 struct xfs_buf **, xfs_inode_t **);
519
520uint xfs_ip2xflags(struct xfs_inode *);
521uint xfs_dic2xflags(struct xfs_dinode *);
522int xfs_ifree(struct xfs_trans *, xfs_inode_t *,
523 struct xfs_bmap_free *);

--- 84 unchanged lines hidden ---
510int xfs_ialloc(struct xfs_trans *, xfs_inode_t *, umode_t,
511 xfs_nlink_t, xfs_dev_t, prid_t, int,
512 struct xfs_buf **, xfs_inode_t **);
513
514uint xfs_ip2xflags(struct xfs_inode *);
515uint xfs_dic2xflags(struct xfs_dinode *);
516int xfs_ifree(struct xfs_trans *, xfs_inode_t *,
517 struct xfs_bmap_free *);

--- 84 unchanged lines hidden ---