diff options
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index d4c0de860124..7bd49b87160c 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c | |||
@@ -202,13 +202,13 @@ xfs_bulkstat_one_fmt( | |||
202 | * Return stat information for one inode. | 202 | * Return stat information for one inode. |
203 | * Return 0 if ok, else errno. | 203 | * Return 0 if ok, else errno. |
204 | */ | 204 | */ |
205 | int /* error status */ | 205 | int /* error status */ |
206 | xfs_bulkstat_one( | 206 | xfs_bulkstat_one_int( |
207 | xfs_mount_t *mp, /* mount point for filesystem */ | 207 | xfs_mount_t *mp, /* mount point for filesystem */ |
208 | xfs_ino_t ino, /* inode number to get data for */ | 208 | xfs_ino_t ino, /* inode number to get data for */ |
209 | void __user *buffer, /* buffer to place output in */ | 209 | void __user *buffer, /* buffer to place output in */ |
210 | int ubsize, /* size of buffer */ | 210 | int ubsize, /* size of buffer */ |
211 | void *private_data, /* my private data */ | 211 | bulkstat_one_fmt_pf formatter, /* formatter, copy to user */ |
212 | xfs_daddr_t bno, /* starting bno of inode cluster */ | 212 | xfs_daddr_t bno, /* starting bno of inode cluster */ |
213 | int *ubused, /* bytes used by me */ | 213 | int *ubused, /* bytes used by me */ |
214 | void *dibuff, /* on-disk inode buffer */ | 214 | void *dibuff, /* on-disk inode buffer */ |
@@ -217,7 +217,6 @@ xfs_bulkstat_one( | |||
217 | xfs_bstat_t *buf; /* return buffer */ | 217 | xfs_bstat_t *buf; /* return buffer */ |
218 | int error = 0; /* error value */ | 218 | int error = 0; /* error value */ |
219 | xfs_dinode_t *dip; /* dinode inode pointer */ | 219 | xfs_dinode_t *dip; /* dinode inode pointer */ |
220 | bulkstat_one_fmt_pf formatter = private_data ? : xfs_bulkstat_one_fmt; | ||
221 | 220 | ||
222 | dip = (xfs_dinode_t *)dibuff; | 221 | dip = (xfs_dinode_t *)dibuff; |
223 | *stat = BULKSTAT_RV_NOTHING; | 222 | *stat = BULKSTAT_RV_NOTHING; |
@@ -255,6 +254,23 @@ xfs_bulkstat_one( | |||
255 | return error; | 254 | return error; |
256 | } | 255 | } |
257 | 256 | ||
257 | int | ||
258 | xfs_bulkstat_one( | ||
259 | xfs_mount_t *mp, /* mount point for filesystem */ | ||
260 | xfs_ino_t ino, /* inode number to get data for */ | ||
261 | void __user *buffer, /* buffer to place output in */ | ||
262 | int ubsize, /* size of buffer */ | ||
263 | void *private_data, /* my private data */ | ||
264 | xfs_daddr_t bno, /* starting bno of inode cluster */ | ||
265 | int *ubused, /* bytes used by me */ | ||
266 | void *dibuff, /* on-disk inode buffer */ | ||
267 | int *stat) /* BULKSTAT_RV_... */ | ||
268 | { | ||
269 | return xfs_bulkstat_one_int(mp, ino, buffer, ubsize, | ||
270 | xfs_bulkstat_one_fmt, bno, | ||
271 | ubused, dibuff, stat); | ||
272 | } | ||
273 | |||
258 | /* | 274 | /* |
259 | * Test to see whether we can use the ondisk inode directly, based | 275 | * Test to see whether we can use the ondisk inode directly, based |
260 | * on the given bulkstat flags, filling in dipp accordingly. | 276 | * on the given bulkstat flags, filling in dipp accordingly. |