Re: [PATCH v7 1/3] fs: fat: Add fat filesystem partition volume label in local structure

From: OGAWA Hirofumi
Date: Sun Jan 14 2018 - 08:19:31 EST


ChenGuanqiao <chen.chenchacha@xxxxxxxxxxx> writes:

> Signed-off-by: ChenGuanqiao <chen.chenchacha@xxxxxxxxxxx>
> ---
> fs/fat/fat.h | 6 ++++++
> fs/fat/inode.c | 15 ++++++++++++---
> include/uapi/linux/msdos_fs.h | 2 ++
> 3 files changed, 20 insertions(+), 3 deletions(-)
>
> diff --git a/fs/fat/fat.h b/fs/fat/fat.h
> index 8fc1093da47d..96f631282c71 100644
> --- a/fs/fat/fat.h
> +++ b/fs/fat/fat.h
> @@ -86,6 +86,7 @@ struct msdos_sb_info {
> int dir_per_block; /* dir entries per block */
> int dir_per_block_bits; /* log2(dir_per_block) */
> unsigned int vol_id; /*volume ID*/
> + char vol_label[11]; /*volume label*/

In latter patches doesn't use this cache. Why do we cache, or why read
ioctl doesn't use this cache?
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>