diff options
author | maybee <none@none> | 2005-11-04 16:42:24 -0800 |
---|---|---|
committer | maybee <none@none> | 2005-11-04 16:42:24 -0800 |
commit | 3f4804320a245ebc9f2cae0c591abc659dae8a32 (patch) | |
tree | 8a01c3ca7caed87f976ced67b19480eb420f021f /usr/src/uts/common/fs/gfs.c | |
parent | 5603afb16b206b595cdbca08a899fb0e574f1db6 (diff) | |
download | illumos-joyent-3f4804320a245ebc9f2cae0c591abc659dae8a32.tar.gz |
6346183 fix telldir()/seekdir() for gfs (fix lint)
Diffstat (limited to 'usr/src/uts/common/fs/gfs.c')
-rw-r--r-- | usr/src/uts/common/fs/gfs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/src/uts/common/fs/gfs.c b/usr/src/uts/common/fs/gfs.c index dd91b112a9..0f2ad1bddc 100644 --- a/usr/src/uts/common/fs/gfs.c +++ b/usr/src/uts/common/fs/gfs.c @@ -200,12 +200,10 @@ gfs_readdir_init(gfs_readdir_state_t *st, int name_max, int ureclen, * st - the current readdir state, which must have d_ino and d_name * set * uiop - caller-supplied uio pointer - * off - the offset of the current entry * next - the offset of the next entry */ static int -gfs_readdir_emit_int(gfs_readdir_state_t *st, uio_t *uiop, offset_t off, - offset_t next) +gfs_readdir_emit_int(gfs_readdir_state_t *st, uio_t *uiop, offset_t next) { int reclen; @@ -255,7 +253,7 @@ gfs_readdir_emit(gfs_readdir_state_t *st, uio_t *uiop, offset_t voff, * Inter-entry offsets are invalid, so we assume a record size of * grd_ureclen and explicitly set the offset appropriately. */ - return (gfs_readdir_emit_int(st, uiop, off, off + st->grd_ureclen)); + return (gfs_readdir_emit_int(st, uiop, off + st->grd_ureclen)); } /* @@ -814,7 +812,7 @@ gfs_dir_readdir(vnode_t *dvp, uio_t *uiop, int *eofp, void *data) next += dp->gfsd_nstatic + 2; if ((error = gfs_readdir_emit_int(&gstate, uiop, - off, next)) != 0) + next)) != 0) break; } else { /* |