diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-24 07:29:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-23 05:13:10 -0400 |
commit | 53c9c5c0e32c69f9df1822e47671c13e3402c82f (patch) | |
tree | 76aae2cfde109c97451d40b5c6e5063e22690a03 /arch/parisc/hpux | |
parent | a9885444f7ff6e9156adb1adf5558ded9a39ad0a (diff) |
[PATCH] prepare vfs_readdir() callers to returning filldir result
It's not the final state, but it allows moving ->readdir() instances
to passing filldir return value to caller of vfs_readdir().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/parisc/hpux')
-rw-r--r-- | arch/parisc/hpux/fs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/parisc/hpux/fs.c b/arch/parisc/hpux/fs.c index 12c04c5e558b..bd9a4db3bd4c 100644 --- a/arch/parisc/hpux/fs.c +++ b/arch/parisc/hpux/fs.c | |||
@@ -127,9 +127,8 @@ int hpux_getdents(unsigned int fd, struct hpux_dirent __user *dirent, unsigned i | |||
127 | buf.error = 0; | 127 | buf.error = 0; |
128 | 128 | ||
129 | error = vfs_readdir(file, filldir, &buf); | 129 | error = vfs_readdir(file, filldir, &buf); |
130 | if (error < 0) | 130 | if (error >= 0) |
131 | goto out_putf; | 131 | error = buf.error; |
132 | error = buf.error; | ||
133 | lastdirent = buf.previous; | 132 | lastdirent = buf.previous; |
134 | if (lastdirent) { | 133 | if (lastdirent) { |
135 | if (put_user(file->f_pos, &lastdirent->d_off)) | 134 | if (put_user(file->f_pos, &lastdirent->d_off)) |