Re: [PATCH v4 2/4] fat (exportfs): rebuild inode if ilookup() fails

2012-10-13 Thread Namjae Jeon
Hi. OGAWA. 2012/10/13 OGAWA Hirofumi : > Namjae Jeon writes: > >> --- a/fs/fat/fat.h >> +++ b/fs/fat/fat.h >> @@ -214,6 +214,13 @@ static inline sector_t fat_clus_to_blknr(struct >> msdos_sb_info *sbi, int clus) >> + sbi->data_start; >> } >> >> +static inline void fat_get_blknr_off

Re: [PATCH v4 2/4] fat (exportfs): rebuild inode if ilookup() fails

2012-10-13 Thread OGAWA Hirofumi
Namjae Jeon writes: > --- a/fs/fat/fat.h > +++ b/fs/fat/fat.h > @@ -214,6 +214,13 @@ static inline sector_t fat_clus_to_blknr(struct > msdos_sb_info *sbi, int clus) > + sbi->data_start; > } > > +static inline void fat_get_blknr_offset(struct msdos_sb_info *sbi, > +

[PATCH v4 2/4] fat (exportfs): rebuild inode if ilookup() fails

2012-10-07 Thread Namjae Jeon
From: Namjae Jeon Assign i_pos to kstat->ino and re-introduce fat_encode_fh() and include i_pos value in the file handle.Use the i_pos value to find the directory entry of the inode and subsequently rebuild the inode if the cache lookups fail. Since this involves accessing the FAT media,it is be