diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-12-02 17:29:05 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-09 08:06:41 +0100 |
commit | 6977292a34d7d8663997df4fcb4f0c520fbc4b29 (patch) | |
tree | 642bd40d879fc208e229e9545062c27e86e29ce8 /fs/fat | |
parent | 09c4b63aa20e97011eb109794c7c23faf7ebdce4 (diff) | |
download | barebox-6977292a34d7d8663997df4fcb4f0c520fbc4b29.tar.gz barebox-6977292a34d7d8663997df4fcb4f0c520fbc4b29.tar.xz |
fs: rename inode member of struct filep to priv
Because that's what it is. 'inode' will become confusing
once we support real inodes.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/fat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index f8094d0608..6d7d262f32 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -161,7 +161,7 @@ static int fat_rmdir(struct device_d *dev, const char *pathname) static int fat_write(struct device_d *_dev, FILE *f, const void *buf, size_t insize) { - FIL *f_file = f->inode; + FIL *f_file = f->priv; int outsize; int ret; @@ -179,7 +179,7 @@ static int fat_write(struct device_d *_dev, FILE *f, const void *buf, size_t ins static int fat_truncate(struct device_d *dev, FILE *f, ulong size) { - FIL *f_file = f->inode; + FIL *f_file = f->priv; unsigned long lastofs; int ret; @@ -232,7 +232,7 @@ static int fat_open(struct device_d *dev, FILE *file, const char *filename) ret = f_lseek(f_file, f_file->fsize); } - file->inode = f_file; + file->priv = f_file; file->size = f_file->fsize; return 0; @@ -241,7 +241,7 @@ static int fat_open(struct device_d *dev, FILE *file, const char *filename) static int fat_close(struct device_d *dev, FILE *f) { struct fat_priv *priv = dev->priv; - FIL *f_file = f->inode; + FIL *f_file = f->priv; f_close(f_file); @@ -255,7 +255,7 @@ static int fat_close(struct device_d *dev, FILE *f) static int fat_read(struct device_d *_dev, FILE *f, void *buf, size_t insize) { int ret; - FIL *f_file = f->inode; + FIL *f_file = f->priv; int outsize; ret = f_read(f_file, buf, insize, &outsize); @@ -270,7 +270,7 @@ static int fat_read(struct device_d *_dev, FILE *f, void *buf, size_t insize) static loff_t fat_lseek(struct device_d *dev, FILE *f, loff_t pos) { - FIL *f_file = f->inode; + FIL *f_file = f->priv; int ret; ret = f_lseek(f_file, pos); |