diff options
author | Dave Chinner <david@fromorbit.com> | 2014-09-28 20:52:44 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-09-28 20:52:44 -0400 |
commit | bd438f825f7badafe56d117ed906488c8541f95f (patch) | |
tree | fb0b4a989c2b63ff796a15a975cd413c2da61aa1 /fs/xfs | |
parent | 2f43bbd96e43d0b85803f5092be94bbb92d8eac9 (diff) | |
parent | b972d0797180d8414351d9dc8ff65071c692d058 (diff) |
Merge branch 'xfs-sparse-fixes' into for-next
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 5 | ||||
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 8 | ||||
-rw-r--r-- | fs/xfs/xfs_mount.c | 3 | ||||
-rw-r--r-- | fs/xfs/xfs_qm.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_super.c | 3 |
5 files changed, 9 insertions, 11 deletions
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index d213a2eae95e..23dcb72fc5e6 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c | |||
@@ -1076,8 +1076,8 @@ xfs_dialloc_ag_finobt_newino( | |||
1076 | int i; | 1076 | int i; |
1077 | 1077 | ||
1078 | if (agi->agi_newino != cpu_to_be32(NULLAGINO)) { | 1078 | if (agi->agi_newino != cpu_to_be32(NULLAGINO)) { |
1079 | error = xfs_inobt_lookup(cur, agi->agi_newino, XFS_LOOKUP_EQ, | 1079 | error = xfs_inobt_lookup(cur, be32_to_cpu(agi->agi_newino), |
1080 | &i); | 1080 | XFS_LOOKUP_EQ, &i); |
1081 | if (error) | 1081 | if (error) |
1082 | return error; | 1082 | return error; |
1083 | if (i == 1) { | 1083 | if (i == 1) { |
@@ -1085,7 +1085,6 @@ xfs_dialloc_ag_finobt_newino( | |||
1085 | if (error) | 1085 | if (error) |
1086 | return error; | 1086 | return error; |
1087 | XFS_WANT_CORRUPTED_RETURN(i == 1); | 1087 | XFS_WANT_CORRUPTED_RETURN(i == 1); |
1088 | |||
1089 | return 0; | 1088 | return 0; |
1090 | } | 1089 | } |
1091 | } | 1090 | } |
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 3799695b9249..7a6b406ce6c9 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c | |||
@@ -1349,7 +1349,7 @@ xfs_ioc_setxflags( | |||
1349 | STATIC int | 1349 | STATIC int |
1350 | xfs_getbmap_format(void **ap, struct getbmapx *bmv, int *full) | 1350 | xfs_getbmap_format(void **ap, struct getbmapx *bmv, int *full) |
1351 | { | 1351 | { |
1352 | struct getbmap __user *base = *ap; | 1352 | struct getbmap __user *base = (struct getbmap __user *)*ap; |
1353 | 1353 | ||
1354 | /* copy only getbmap portion (not getbmapx) */ | 1354 | /* copy only getbmap portion (not getbmapx) */ |
1355 | if (copy_to_user(base, bmv, sizeof(struct getbmap))) | 1355 | if (copy_to_user(base, bmv, sizeof(struct getbmap))) |
@@ -1380,7 +1380,7 @@ xfs_ioc_getbmap( | |||
1380 | bmx.bmv_iflags |= BMV_IF_NO_DMAPI_READ; | 1380 | bmx.bmv_iflags |= BMV_IF_NO_DMAPI_READ; |
1381 | 1381 | ||
1382 | error = xfs_getbmap(ip, &bmx, xfs_getbmap_format, | 1382 | error = xfs_getbmap(ip, &bmx, xfs_getbmap_format, |
1383 | (struct getbmap *)arg+1); | 1383 | (__force struct getbmap *)arg+1); |
1384 | if (error) | 1384 | if (error) |
1385 | return error; | 1385 | return error; |
1386 | 1386 | ||
@@ -1393,7 +1393,7 @@ xfs_ioc_getbmap( | |||
1393 | STATIC int | 1393 | STATIC int |
1394 | xfs_getbmapx_format(void **ap, struct getbmapx *bmv, int *full) | 1394 | xfs_getbmapx_format(void **ap, struct getbmapx *bmv, int *full) |
1395 | { | 1395 | { |
1396 | struct getbmapx __user *base = *ap; | 1396 | struct getbmapx __user *base = (struct getbmapx __user *)*ap; |
1397 | 1397 | ||
1398 | if (copy_to_user(base, bmv, sizeof(struct getbmapx))) | 1398 | if (copy_to_user(base, bmv, sizeof(struct getbmapx))) |
1399 | return -EFAULT; | 1399 | return -EFAULT; |
@@ -1420,7 +1420,7 @@ xfs_ioc_getbmapx( | |||
1420 | return -EINVAL; | 1420 | return -EINVAL; |
1421 | 1421 | ||
1422 | error = xfs_getbmap(ip, &bmx, xfs_getbmapx_format, | 1422 | error = xfs_getbmap(ip, &bmx, xfs_getbmapx_format, |
1423 | (struct getbmapx *)arg+1); | 1423 | (__force struct getbmapx *)arg+1); |
1424 | if (error) | 1424 | if (error) |
1425 | return error; | 1425 | return error; |
1426 | 1426 | ||
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index fbf0384a466f..d36bdbc9eeb2 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -61,8 +61,6 @@ static DEFINE_MUTEX(xfs_uuid_table_mutex); | |||
61 | static int xfs_uuid_table_size; | 61 | static int xfs_uuid_table_size; |
62 | static uuid_t *xfs_uuid_table; | 62 | static uuid_t *xfs_uuid_table; |
63 | 63 | ||
64 | extern struct kset *xfs_kset; | ||
65 | |||
66 | /* | 64 | /* |
67 | * See if the UUID is unique among mounted XFS filesystems. | 65 | * See if the UUID is unique among mounted XFS filesystems. |
68 | * Mount fails if UUID is nil or a FS with the same UUID is already mounted. | 66 | * Mount fails if UUID is nil or a FS with the same UUID is already mounted. |
@@ -729,7 +727,6 @@ xfs_mountfs( | |||
729 | 727 | ||
730 | xfs_set_maxicount(mp); | 728 | xfs_set_maxicount(mp); |
731 | 729 | ||
732 | mp->m_kobj.kobject.kset = xfs_kset; | ||
733 | error = xfs_sysfs_init(&mp->m_kobj, &xfs_mp_ktype, NULL, mp->m_fsname); | 730 | error = xfs_sysfs_init(&mp->m_kobj, &xfs_mp_ktype, NULL, mp->m_fsname); |
734 | if (error) | 731 | if (error) |
735 | goto out; | 732 | goto out; |
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 10232102b4a6..d68f23021af3 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c | |||
@@ -434,6 +434,7 @@ xfs_qm_dquot_isolate( | |||
434 | struct list_head *item, | 434 | struct list_head *item, |
435 | spinlock_t *lru_lock, | 435 | spinlock_t *lru_lock, |
436 | void *arg) | 436 | void *arg) |
437 | __releases(lru_lock) __acquires(lru_lock) | ||
437 | { | 438 | { |
438 | struct xfs_dquot *dqp = container_of(item, | 439 | struct xfs_dquot *dqp = container_of(item, |
439 | struct xfs_dquot, q_lru); | 440 | struct xfs_dquot, q_lru); |
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index dcd4b93dccdc..9f622feda6a4 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -63,7 +63,7 @@ static const struct super_operations xfs_super_operations; | |||
63 | static kmem_zone_t *xfs_ioend_zone; | 63 | static kmem_zone_t *xfs_ioend_zone; |
64 | mempool_t *xfs_ioend_pool; | 64 | mempool_t *xfs_ioend_pool; |
65 | 65 | ||
66 | struct kset *xfs_kset; /* top-level xfs sysfs dir */ | 66 | static struct kset *xfs_kset; /* top-level xfs sysfs dir */ |
67 | #ifdef DEBUG | 67 | #ifdef DEBUG |
68 | static struct xfs_kobj xfs_dbg_kobj; /* global debug sysfs attrs */ | 68 | static struct xfs_kobj xfs_dbg_kobj; /* global debug sysfs attrs */ |
69 | #endif | 69 | #endif |
@@ -1411,6 +1411,7 @@ xfs_fs_fill_super( | |||
1411 | atomic_set(&mp->m_active_trans, 0); | 1411 | atomic_set(&mp->m_active_trans, 0); |
1412 | INIT_DELAYED_WORK(&mp->m_reclaim_work, xfs_reclaim_worker); | 1412 | INIT_DELAYED_WORK(&mp->m_reclaim_work, xfs_reclaim_worker); |
1413 | INIT_DELAYED_WORK(&mp->m_eofblocks_work, xfs_eofblocks_worker); | 1413 | INIT_DELAYED_WORK(&mp->m_eofblocks_work, xfs_eofblocks_worker); |
1414 | mp->m_kobj.kobject.kset = xfs_kset; | ||
1414 | 1415 | ||
1415 | mp->m_super = sb; | 1416 | mp->m_super = sb; |
1416 | sb->s_fs_info = mp; | 1417 | sb->s_fs_info = mp; |