Re: [PATCH 1/8] far: remove i_alloc_sem abuse

2011-06-21 Thread OGAWA Hirofumi
Christoph Hellwig h...@infradead.org writes: Add a new rw_semaphore to protect bmap against truncate. Previous i_alloc_sem was abused for this, but it's going away in this series. In FAT case, -i_mutex was better. But, last time I saw, shmfs was using -i_mutex to call -bmap. So, this was

Re: [PATCH 1/8] far: remove i_alloc_sem abuse

2011-06-21 Thread OGAWA Hirofumi
OGAWA Hirofumi hirof...@mail.parknet.co.jp writes: Christoph Hellwig h...@infradead.org writes: Add a new rw_semaphore to protect bmap against truncate. Previous i_alloc_sem was abused for this, but it's going away in this series. In FAT case, -i_mutex was better. But, last time I saw,

Re: [PATCH 1/8] far: remove i_alloc_sem abuse

2011-06-21 Thread Christoph Hellwig
On Wed, Jun 22, 2011 at 12:57:43AM +0900, OGAWA Hirofumi wrote: Christoph Hellwig h...@infradead.org writes: Add a new rw_semaphore to protect bmap against truncate. Previous i_alloc_sem was abused for this, but it's going away in this series. In FAT case, -i_mutex was better. But, last

[PATCH 1/8] far: remove i_alloc_sem abuse

2011-06-20 Thread Christoph Hellwig
Add a new rw_semaphore to protect bmap against truncate. Previous i_alloc_sem was abused for this, but it's going away in this series. Signed-off-by: Christoph Hellwig h...@lst.de Index: linux-2.6/fs/fat/inode.c === ---