Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12218
b: refs/heads/master
c: e94af02
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sandeen authored and Nathan Scott committed Nov 2, 2005
1 parent 1c2261b commit 9c18036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91e11088f88e07f5f42c88608329bc0756c183f9
refs/heads/master: e94af02a9cd7b6590bec81df9d6ab857d6cf322f
6 changes: 3 additions & 3 deletions trunk/fs/xfs/xfs_vnodeops.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,7 @@ xfs_setattr(
/*
* Can't change extent size if any extents are allocated.
*/
if ((ip->i_d.di_nextents || ip->i_delayed_blks) &&
(mask & XFS_AT_EXTSIZE) &&
if (ip->i_d.di_nextents && (mask & XFS_AT_EXTSIZE) &&
((ip->i_d.di_extsize << mp->m_sb.sb_blocklog) !=
vap->va_extsize) ) {
code = XFS_ERROR(EINVAL); /* EFBIG? */
Expand Down Expand Up @@ -562,7 +561,8 @@ xfs_setattr(
/*
* Can't change realtime flag if any extents are allocated.
*/
if (ip->i_d.di_nextents && (mask & XFS_AT_XFLAGS) &&
if ((ip->i_d.di_nextents || ip->i_delayed_blks) &&
(mask & XFS_AT_XFLAGS) &&
(ip->i_d.di_flags & XFS_DIFLAG_REALTIME) !=
(vap->va_xflags & XFS_XFLAG_REALTIME)) {
code = XFS_ERROR(EINVAL); /* EFBIG? */
Expand Down

0 comments on commit 9c18036

Please sign in to comment.