login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
7
Re: [patch 0/15] LogFS take five
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Jens Axboe <jens.axboe@...>
To: Jörn <joern@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>, <linux-mtd@...>, Nick Piggin <npiggin@...>, David Woodhouse <dwmw2@...>
Subject:
Re: [patch 0/15] LogFS take five
Date: Monday, April 7, 2008 - 5:17 am
On Mon, Apr 07 2008, Jörn Engel wrote:
quoted text
> On Mon, 7 April 2008 10:28:41 +0200, Jens Axboe wrote: > > > > > > fs/block_dev.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > --- linux-2.6.24logfs/fs/block_dev.c~blockdev_nofs 2008-04-07 10:19:08.627413077 +0200 > > > +++ linux-2.6.24logfs/fs/block_dev.c 2008-04-07 10:20:56.927117162 +0200 > > > @@ -586,7 +586,7 @@ struct block_device *bdget(dev_t dev) > > > inode->i_rdev = dev; > > > inode->i_bdev = bdev; > > > inode->i_data.a_ops = &def_blk_aops; > > > - mapping_set_gfp_mask(&inode->i_data, GFP_USER); > > > + mapping_set_gfp_mask(&inode->i_data, GFP_USER & ~__GFP_FS); > > > inode->i_data.backing_dev_info = &default_backing_dev_info; > > > spin_lock(&bdev_lock); > > > list_add(&bdev->bd_list, &all_bdevs); > > > > It's not the right fix, generally GFP_FS is fine here. So do that in > > logfs when you cannot traverse back into the fs, eg > > > > mapping_gfp_mask(mapping) & ~__GFP_FS; > > > > locally. > > struct address_space *mapping; > > /* Prevent bdev from calling back into fs */ > mapping = &logfs_super(sb)->s_bdev->bd_inode->i_data; > mapping_set_gfp_mask(mapping, mapping_gfp_mask(mapping) & ~__GFP_FS); > > bd_inode has an interesting comment: > struct inode * bd_inode; /* will die */ > > Should I be worried about that? It seems to predate git history, so > I'm not too concerned about immediate changes.
I'd just ignore it, it's widely used anyway... -- Jens Axboe --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[patch 0/15] LogFS take five
,
, (Tue Apr 1, 2:13 pm)
Re: [patch 0/15] LogFS take five
, Jens Axboe
, (Fri Apr 4, 7:46 am)
Re: [patch 0/15] LogFS take five
, Jörn
, (Mon Apr 7, 4:22 am)
Re: [patch 0/15] LogFS take five
, Jens Axboe
, (Mon Apr 7, 4:28 am)
Re: [patch 0/15] LogFS take five
, Jörn
, (Mon Apr 7, 5:10 am)
Re: [patch 0/15] LogFS take five
, Jens Axboe
, (Mon Apr 7, 5:17 am)
Re: [patch 0/15] LogFS take five^Wsix
, Jörn
, (Thu Apr 3, 1:13 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
David Woodhouse
[GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in more dr...
Philipp Marek
Re: sys_chroot+sys_fchdir Fix
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
git
:
linux-netdev
:
Krishna Kumar
[PATCH 9/10 REV5] [IPoIB] Implement batching
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
977 guests
online.
Online users
Kedar Sovani
stbagl30
Syndicate