Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233818
b: refs/heads/master
c: 8336026
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Mar 3, 2011
1 parent 0285c8c commit e91b7c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 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: 69102e9b4b61f56a26717659ec2e572a6b18458d
refs/heads/master: 8336026942fdf6a96a45057a2fe6d7f7946979d5
3 changes: 2 additions & 1 deletion trunk/fs/nilfs2/segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ static void nilfs_segctor_begin_finfo(struct nilfs_sc_info *sci,
nilfs_segctor_map_segsum_entry(
sci, &sci->sc_binfo_ptr, sizeof(struct nilfs_finfo));

if (inode->i_sb && !test_bit(NILFS_SC_HAVE_DELTA, &sci->sc_flags))
if (NILFS_I(inode)->i_root &&
!test_bit(NILFS_SC_HAVE_DELTA, &sci->sc_flags))
set_bit(NILFS_SC_HAVE_DELTA, &sci->sc_flags);
/* skip finfo */
}
Expand Down
11 changes: 8 additions & 3 deletions trunk/fs/xfs/linux-2.6/xfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,14 +695,19 @@ xfs_ioc_fsgeometry_v1(
xfs_mount_t *mp,
void __user *arg)
{
xfs_fsop_geom_v1_t fsgeo;
xfs_fsop_geom_t fsgeo;
int error;

error = xfs_fs_geometry(mp, (xfs_fsop_geom_t *)&fsgeo, 3);
error = xfs_fs_geometry(mp, &fsgeo, 3);
if (error)
return -error;

if (copy_to_user(arg, &fsgeo, sizeof(fsgeo)))
/*
* Caller should have passed an argument of type
* xfs_fsop_geom_v1_t. This is a proper subset of the
* xfs_fsop_geom_t that xfs_fs_geometry() fills in.
*/
if (copy_to_user(arg, &fsgeo, sizeof(xfs_fsop_geom_v1_t)))
return -XFS_ERROR(EFAULT);
return 0;
}
Expand Down

0 comments on commit e91b7c3

Please sign in to comment.