Diff for /xfs-linux/xfs_inode.c between versions 1.464 and 1.465

version 1.464, 2007/06/20 06:10:53 version 1.465, 2007/07/09 06:12:03
Line 48 Line 48
 #include "xfs_dir2_trace.h"  #include "xfs_dir2_trace.h"
 #include "xfs_quota.h"  #include "xfs_quota.h"
 #include "xfs_acl.h"  #include "xfs_acl.h"
   #include "xfs_filestream.h"
   
 #include <linux/log2.h>  #include <linux/log2.h>
   
Line 818  _xfs_dic2xflags( Line 819  _xfs_dic2xflags(
                         flags |= XFS_XFLAG_EXTSZINHERIT;                          flags |= XFS_XFLAG_EXTSZINHERIT;
                 if (di_flags & XFS_DIFLAG_NODEFRAG)                  if (di_flags & XFS_DIFLAG_NODEFRAG)
                         flags |= XFS_XFLAG_NODEFRAG;                          flags |= XFS_XFLAG_NODEFRAG;
                   if (di_flags & XFS_DIFLAG_FILESTREAM)
                           flags |= XFS_XFLAG_FILESTREAM;
         }          }
   
         return flags;          return flags;
Line 1151  xfs_ialloc( Line 1154  xfs_ialloc(
         /*          /*
          * Project ids won't be stored on disk if we are using a version 1 inode.           * Project ids won't be stored on disk if we are using a version 1 inode.
          */           */
         if ( (prid != 0) && (ip->i_d.di_version == XFS_DINODE_VERSION_1))          if ((prid != 0) && (ip->i_d.di_version == XFS_DINODE_VERSION_1))
                 xfs_bump_ino_vers2(tp, ip);                  xfs_bump_ino_vers2(tp, ip);
   
         if (XFS_INHERIT_GID(pip, vp->v_vfsp)) {          if (XFS_INHERIT_GID(pip, vp->v_vfsp)) {
Line 1196  xfs_ialloc( Line 1199  xfs_ialloc(
                 flags |= XFS_ILOG_DEV;                  flags |= XFS_ILOG_DEV;
                 break;                  break;
         case S_IFREG:          case S_IFREG:
                   if (xfs_inode_is_filestream(pip)) {
                           error = xfs_filestream_associate(pip, ip);
                           if (error < 0)
                                   return -error;
                           if (!error)
                                   xfs_iflags_set(ip, XFS_IFILESTREAM);
                   }
                   /* fall through */
         case S_IFDIR:          case S_IFDIR:
                 if (unlikely(pip->i_d.di_flags & XFS_DIFLAG_ANY)) {                  if (pip->i_d.di_flags & XFS_DIFLAG_ANY) {
                         uint    di_flags = 0;                          uint    di_flags = 0;
   
                         if ((mode & S_IFMT) == S_IFDIR) {                          if ((mode & S_IFMT) == S_IFDIR) {
Line 1234  xfs_ialloc( Line 1245  xfs_ialloc(
                         if ((pip->i_d.di_flags & XFS_DIFLAG_NODEFRAG) &&                          if ((pip->i_d.di_flags & XFS_DIFLAG_NODEFRAG) &&
                             xfs_inherit_nodefrag)                              xfs_inherit_nodefrag)
                                 di_flags |= XFS_DIFLAG_NODEFRAG;                                  di_flags |= XFS_DIFLAG_NODEFRAG;
                           if (pip->i_d.di_flags & XFS_DIFLAG_FILESTREAM)
                                   di_flags |= XFS_DIFLAG_FILESTREAM;
                         ip->i_d.di_flags |= di_flags;                          ip->i_d.di_flags |= di_flags;
                 }                  }
                 /* FALLTHROUGH */                  /* FALLTHROUGH */

Removed from v.1.464  
changed lines
  Added in v.1.465


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>