diff options
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index cb64f222d607..e4056a7495e5 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c | |||
@@ -67,11 +67,11 @@ xfs_bulkstat_one_int( | |||
67 | *stat = BULKSTAT_RV_NOTHING; | 67 | *stat = BULKSTAT_RV_NOTHING; |
68 | 68 | ||
69 | if (!buffer || xfs_internal_inum(mp, ino)) | 69 | if (!buffer || xfs_internal_inum(mp, ino)) |
70 | return XFS_ERROR(EINVAL); | 70 | return EINVAL; |
71 | 71 | ||
72 | buf = kmem_alloc(sizeof(*buf), KM_SLEEP | KM_MAYFAIL); | 72 | buf = kmem_alloc(sizeof(*buf), KM_SLEEP | KM_MAYFAIL); |
73 | if (!buf) | 73 | if (!buf) |
74 | return XFS_ERROR(ENOMEM); | 74 | return ENOMEM; |
75 | 75 | ||
76 | error = xfs_iget(mp, NULL, ino, | 76 | error = xfs_iget(mp, NULL, ino, |
77 | (XFS_IGET_DONTCACHE | XFS_IGET_UNTRUSTED), | 77 | (XFS_IGET_DONTCACHE | XFS_IGET_UNTRUSTED), |
@@ -154,9 +154,9 @@ xfs_bulkstat_one_fmt( | |||
154 | const xfs_bstat_t *buffer) | 154 | const xfs_bstat_t *buffer) |
155 | { | 155 | { |
156 | if (ubsize < sizeof(*buffer)) | 156 | if (ubsize < sizeof(*buffer)) |
157 | return XFS_ERROR(ENOMEM); | 157 | return ENOMEM; |
158 | if (copy_to_user(ubuffer, buffer, sizeof(*buffer))) | 158 | if (copy_to_user(ubuffer, buffer, sizeof(*buffer))) |
159 | return XFS_ERROR(EFAULT); | 159 | return EFAULT; |
160 | if (ubused) | 160 | if (ubused) |
161 | *ubused = sizeof(*buffer); | 161 | *ubused = sizeof(*buffer); |
162 | return 0; | 162 | return 0; |
@@ -552,7 +552,7 @@ xfs_bulkstat_single( | |||
552 | return error; | 552 | return error; |
553 | if (count == 0 || (xfs_ino_t)*lastinop != ino) | 553 | if (count == 0 || (xfs_ino_t)*lastinop != ino) |
554 | return error == EFSCORRUPTED ? | 554 | return error == EFSCORRUPTED ? |
555 | XFS_ERROR(EINVAL) : error; | 555 | EINVAL : error; |
556 | else | 556 | else |
557 | return 0; | 557 | return 0; |
558 | } | 558 | } |
@@ -661,7 +661,7 @@ xfs_inumbers( | |||
661 | if (bufidx == bcount) { | 661 | if (bufidx == bcount) { |
662 | long written; | 662 | long written; |
663 | if (formatter(ubuffer, buffer, bufidx, &written)) { | 663 | if (formatter(ubuffer, buffer, bufidx, &written)) { |
664 | error = XFS_ERROR(EFAULT); | 664 | error = EFAULT; |
665 | break; | 665 | break; |
666 | } | 666 | } |
667 | ubuffer += written; | 667 | ubuffer += written; |
@@ -688,7 +688,7 @@ xfs_inumbers( | |||
688 | if (bufidx) { | 688 | if (bufidx) { |
689 | long written; | 689 | long written; |
690 | if (formatter(ubuffer, buffer, bufidx, &written)) | 690 | if (formatter(ubuffer, buffer, bufidx, &written)) |
691 | error = XFS_ERROR(EFAULT); | 691 | error = EFAULT; |
692 | else | 692 | else |
693 | *count += bufidx; | 693 | *count += bufidx; |
694 | } | 694 | } |