summaryrefslogtreecommitdiff
path: root/core/include/fs.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-28 21:50:04 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-28 21:50:04 -0800
commit7e5ed28c5bd515ceabac8bc8575f7515ecebb9b6 (patch)
tree492a973355871a13fcce1d95536f9e9a35455d25 /core/include/fs.h
parent0fba01f4009b29ec9f2cdadafa33fd4699675542 (diff)
downloadsyslinux-7e5ed28c5bd515ceabac8bc8575f7515ecebb9b6.tar.gz
core: fs: get rid of the prev_extent member
The prev_extent member was only ever used transiently; instead pass the new lstart in as an argument and leave the previous value of next_extent unmolested and thus can be used in-place. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include/fs.h')
-rw-r--r--core/include/fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/fs.h b/core/include/fs.h
index ef7eb8b5..4aca7fc4 100644
--- a/core/include/fs.h
+++ b/core/include/fs.h
@@ -69,7 +69,7 @@ struct fs_ops {
/* the _dir_ stuff */
struct dirent * (*readdir)(struct file *);
- void (*next_extent)(struct inode *);
+ int (*next_extent)(struct inode *, uint32_t);
};
enum inode_mode {I_FILE, I_DIR, I_SYMLINK};
@@ -106,7 +106,7 @@ struct inode {
uint32_t dtime; /* Delete time */
uint32_t flags;
uint32_t file_acl;
- struct extent this_extent, prev_extent, next_extent;
+ struct extent this_extent, next_extent;
char pvt[0]; /* Private filesystem data */
};