Re: [PATCH v3 3/5] fat (exportfs): rebuild inode if ilookup() fails

2012-09-23 Thread Namjae Jeon
2012/9/22, OGAWA Hirofumi : > Namjae Jeon writes: > >> +if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_LIMITED) { >> +struct buffer_head *bh = NULL; >> +struct msdos_dir_entry *de ; >> +loff_t i_pos = (loff_t)ino; >> +int bits = MSDOS_

Re: [PATCH v3 3/5] fat (exportfs): rebuild inode if ilookup() fails

2012-09-22 Thread OGAWA Hirofumi
Namjae Jeon writes: > + if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_LIMITED) { > + struct buffer_head *bh = NULL; > + struct msdos_dir_entry *de ; > + loff_t i_pos = (loff_t)ino; > + int bits = MSDOS_SB(sb)->dir_per_block_bits; > +

[PATCH v3 3/5] fat (exportfs): rebuild inode if ilookup() fails

2012-09-16 Thread Namjae Jeon
From: Namjae Jeon Since the previous patch in this patch-set uses i_pos as the inode number, we can use it 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 better to do this only if the 'nfs'