Diff for /xfs-linux/dmapi/xfs_dm.c between versions 1.33 and 1.34

version 1.33, 2007/03/02 02:59:33 version 1.34, 2007/03/30 04:04:14
Line 467  xfs_ip_to_stat( Line 467  xfs_ip_to_stat(
         buf->dt_mode = dic->di_mode;          buf->dt_mode = dic->di_mode;
         buf->dt_uid = dic->di_uid;          buf->dt_uid = dic->di_uid;
         buf->dt_gid = dic->di_gid;          buf->dt_gid = dic->di_gid;
         buf->dt_size = dic->di_size;          buf->dt_size = XFS_ISIZE(ip);
         buf->dt_dev = new_encode_dev(vp->v_inode.i_sb->s_dev);          buf->dt_dev = new_encode_dev(vp->v_inode.i_sb->s_dev);
         vn_atime_to_time_t(vp, &buf->dt_atime);          vn_atime_to_time_t(vp, &buf->dt_atime);
         buf->dt_mtime = dic->di_mtime.t_sec;          buf->dt_mtime = dic->di_mtime.t_sec;
Line 2573  xfs_dm_probe_hole( Line 2573  xfs_dm_probe_hole(
   
         lock_flags = XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL;          lock_flags = XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL;
         xfs_ilock(ip, lock_flags);          xfs_ilock(ip, lock_flags);
         realsize = ip->i_d.di_size;          realsize = ip->i_size;
         xfs_iunlock(ip, lock_flags);          xfs_iunlock(ip, lock_flags);
         if (off >= realsize)          if (off >= realsize)
                 return(-E2BIG);                  return(-E2BIG);
Line 2638  xfs_dm_punch_hole( Line 2638  xfs_dm_punch_hole(
         down_rw_sems(inode, DM_SEM_FLAG_WR);          down_rw_sems(inode, DM_SEM_FLAG_WR);
   
         xfs_ilock(xip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);          xfs_ilock(xip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);
         if ((off >= xip->i_d.di_size) || ((off+len) > xip->i_d.di_size)) {          if ((off >= xip->i_size) || ((off+len) > xip->i_size)) {
                 xfs_iunlock(xip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);                  xfs_iunlock(xip, XFS_ILOCK_EXCL | XFS_IOLOCK_EXCL);
                 error = -E2BIG;                  error = -E2BIG;
                 goto up_and_out;                  goto up_and_out;
         }          }
         realsize = xip->i_d.di_size;          realsize = xip->i_size;
         xfs_iunlock(xip, XFS_ILOCK_EXCL);          xfs_iunlock(xip, XFS_ILOCK_EXCL);
   
         bf.l_type = 0;          bf.l_type = 0;
Line 3284  xfs_dm_send_mmap_event( Line 3284  xfs_dm_send_mmap_event(
         length = 0; /* whole file, for now */          length = 0; /* whole file, for now */
   
         filesize = ip->i_iocore.io_new_size;          filesize = ip->i_iocore.io_new_size;
         if (filesize < ip->i_d.di_size) {          if (filesize < ip->i_size) {
                 filesize = ip->i_d.di_size;                  filesize = ip->i_size;
         }          }
   
         /* Set first byte number beyond the map area. */          /* Set first byte number beyond the map area. */

Removed from v.1.33  
changed lines
  Added in v.1.34


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