Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-20 Thread Gioh Kim
2014-08-21 오전 7:02, Jan Kara 쓴 글: On Wed 20-08-14 11:38:10, Gioh Kim wrote: @@ -1381,12 +1383,7 @@ EXPORT_SYMBOL(__find_get_block); struct buffer_head * __getblk(struct block_device *bdev, sector_t block, unsigned size) { - struct buffer_head *bh = __find_get_block(bdev, block,

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-20 Thread Jan Kara
On Wed 20-08-14 11:38:10, Gioh Kim wrote: > > @@ -1381,12 +1383,7 @@ EXPORT_SYMBOL(__find_get_block); > struct buffer_head * > __getblk(struct block_device *bdev, sector_t block, unsigned size) > { > - struct buffer_head *bh = __find_get_block(bdev, block, size); >

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-20 Thread Jan Kara
On Wed 20-08-14 11:38:10, Gioh Kim wrote: @@ -1381,12 +1383,7 @@ EXPORT_SYMBOL(__find_get_block); struct buffer_head * __getblk(struct block_device *bdev, sector_t block, unsigned size) { - struct buffer_head *bh = __find_get_block(bdev, block, size); - - might_sleep();

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-20 Thread Gioh Kim
2014-08-21 오전 7:02, Jan Kara 쓴 글: On Wed 20-08-14 11:38:10, Gioh Kim wrote: @@ -1381,12 +1383,7 @@ EXPORT_SYMBOL(__find_get_block); struct buffer_head * __getblk(struct block_device *bdev, sector_t block, unsigned size) { - struct buffer_head *bh = __find_get_block(bdev, block,

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Gioh Kim
@@ -1381,12 +1383,7 @@ EXPORT_SYMBOL(__find_get_block); struct buffer_head * __getblk(struct block_device *bdev, sector_t block, unsigned size) { - struct buffer_head *bh = __find_get_block(bdev, block, size); - - might_sleep(); - if (bh == NULL) - bh =

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Jan Kara
On Wed 20-08-14 08:37:07, Gioh Kim wrote: > > > 2014-08-19 오후 10:03, Jan Kara 쓴 글: > > Hello, > > > >On Tue 19-08-14 15:52:38, Gioh Kim wrote: > >>A buffer cache is allocated from movable area > >>because it is referred for a while and released soon. > >>But some filesystems are taking buffer

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Gioh Kim
2014-08-19 오후 10:03, Jan Kara 쓴 글: Hello, On Tue 19-08-14 15:52:38, Gioh Kim wrote: A buffer cache is allocated from movable area because it is referred for a while and released soon. But some filesystems are taking buffer cache for a long time and it can disturb page migration. A new

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Jan Kara
Hello, On Tue 19-08-14 15:52:38, Gioh Kim wrote: > A buffer cache is allocated from movable area > because it is referred for a while and released soon. > But some filesystems are taking buffer cache for a long time > and it can disturb page migration. > > A new API should be introduced to

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Gioh Kim
2014-08-19 오후 10:03, Jan Kara 쓴 글: Hello, On Tue 19-08-14 15:52:38, Gioh Kim wrote: A buffer cache is allocated from movable area because it is referred for a while and released soon. But some filesystems are taking buffer cache for a long time and it can disturb page migration. A new

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Jan Kara
On Wed 20-08-14 08:37:07, Gioh Kim wrote: 2014-08-19 오후 10:03, Jan Kara 쓴 글: Hello, On Tue 19-08-14 15:52:38, Gioh Kim wrote: A buffer cache is allocated from movable area because it is referred for a while and released soon. But some filesystems are taking buffer cache for a long

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Gioh Kim
@@ -1381,12 +1383,7 @@ EXPORT_SYMBOL(__find_get_block); struct buffer_head * __getblk(struct block_device *bdev, sector_t block, unsigned size) { - struct buffer_head *bh = __find_get_block(bdev, block, size); - - might_sleep(); - if (bh == NULL) - bh =

Re: [PATCHv2 1/3] fs/buffer.c: allocate buffer cache with user specific flag

2014-08-19 Thread Jan Kara
Hello, On Tue 19-08-14 15:52:38, Gioh Kim wrote: A buffer cache is allocated from movable area because it is referred for a while and released soon. But some filesystems are taking buffer cache for a long time and it can disturb page migration. A new API should be introduced to allocate