diff options
author | Tetsuhiro Kohada <kohada.t2@gmail.com> | 2020-09-17 03:39:16 +0200 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-10-22 01:29:11 +0200 |
commit | 04cee52fb8bdbdb0506460f191ed6fd9e6faf00b (patch) | |
tree | edaa11dc74e8c20ef98d6f5941d93165d840998b /fs/exfat/super.c | |
parent | exfat: replace memcpy with structure assignment (diff) | |
download | linux-04cee52fb8bdbdb0506460f191ed6fd9e6faf00b.tar.xz linux-04cee52fb8bdbdb0506460f191ed6fd9e6faf00b.zip |
exfat: remove 'rwoffset' in exfat_inode_info
Remove 'rwoffset' in exfat_inode_info and replace it with the parameter of
exfat_readdir().
Since rwoffset is referenced only by exfat_readdir(), it is not necessary
a exfat_inode_info's member.
Also, change cpos to point to the next of entry-set, and return the index
of dir-entry via dir_entry->entry.
Signed-off-by: Tetsuhiro Kohada <kohada.t2@gmail.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to '')
-rw-r--r-- | fs/exfat/super.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/exfat/super.c b/fs/exfat/super.c index 60b941ba557b..3ffdce5c7384 100644 --- a/fs/exfat/super.c +++ b/fs/exfat/super.c @@ -342,7 +342,6 @@ static int exfat_read_root(struct inode *inode) ei->flags = ALLOC_FAT_CHAIN; ei->type = TYPE_DIR; ei->version = 0; - ei->rwoffset = 0; ei->hint_bmap.off = EXFAT_EOF_CLUSTER; ei->hint_stat.eidx = 0; ei->hint_stat.clu = sbi->root_dir; |