diff options
Diffstat (limited to 'fs/xfs/xfs_dquot_item.c')
-rw-r--r-- | fs/xfs/xfs_dquot_item.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/fs/xfs/xfs_dquot_item.c b/fs/xfs/xfs_dquot_item.c index f07a4365def6..60c6e1f12695 100644 --- a/fs/xfs/xfs_dquot_item.c +++ b/fs/xfs/xfs_dquot_item.c | |||
@@ -44,14 +44,15 @@ static inline struct xfs_dq_logitem *DQUOT_ITEM(struct xfs_log_item *lip) | |||
44 | /* | 44 | /* |
45 | * returns the number of iovecs needed to log the given dquot item. | 45 | * returns the number of iovecs needed to log the given dquot item. |
46 | */ | 46 | */ |
47 | STATIC uint | 47 | STATIC void |
48 | xfs_qm_dquot_logitem_size( | 48 | xfs_qm_dquot_logitem_size( |
49 | struct xfs_log_item *lip) | 49 | struct xfs_log_item *lip, |
50 | int *nvecs, | ||
51 | int *nbytes) | ||
50 | { | 52 | { |
51 | /* | 53 | *nvecs += 2; |
52 | * we need only two iovecs, one for the format, one for the real thing | 54 | *nbytes += sizeof(struct xfs_dq_logformat) + |
53 | */ | 55 | sizeof(struct xfs_disk_dquot); |
54 | return 2; | ||
55 | } | 56 | } |
56 | 57 | ||
57 | /* | 58 | /* |
@@ -286,11 +287,14 @@ static inline struct xfs_qoff_logitem *QOFF_ITEM(struct xfs_log_item *lip) | |||
286 | * We only need 1 iovec for an quotaoff item. It just logs the | 287 | * We only need 1 iovec for an quotaoff item. It just logs the |
287 | * quotaoff_log_format structure. | 288 | * quotaoff_log_format structure. |
288 | */ | 289 | */ |
289 | STATIC uint | 290 | STATIC void |
290 | xfs_qm_qoff_logitem_size( | 291 | xfs_qm_qoff_logitem_size( |
291 | struct xfs_log_item *lip) | 292 | struct xfs_log_item *lip, |
293 | int *nvecs, | ||
294 | int *nbytes) | ||
292 | { | 295 | { |
293 | return 1; | 296 | *nvecs += 1; |
297 | *nbytes += sizeof(struct xfs_qoff_logitem); | ||
294 | } | 298 | } |
295 | 299 | ||
296 | /* | 300 | /* |