login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
13
Re: [PATCH] quota: le*_add_cpu conversion
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jan Kara <jack@...>
To: <marcin.slusarz@...>
Cc: LKML <linux-kernel@...>
Subject:
Re: [PATCH] quota: le*_add_cpu conversion
Date: Wednesday, February 13, 2008 - 5:52 am
On Wed 13-02-08 00:06:19,
marcin.slusarz@gmail.com
wrote:
quoted text
> From: Marcin Slusarz <marcin.slusarz@gmail.com> > > replace all: > little_endian_variable = cpu_to_leX(leX_to_cpu(little_endian_variable) + > expression_in_cpu_byteorder); > with: > leX_add_cpu(&little_endian_variable, expression_in_cpu_byteorder); > generated with semantic patch > > Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> > Cc: Jan Kara <jack@suse.cz>
Acked-by: Jan Kara <jack@suse.cz> Honza
quoted text
> --- > fs/quota_v2.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/quota_v2.c b/fs/quota_v2.c > index c519a58..a9f9eef 100644 > --- a/fs/quota_v2.c > +++ b/fs/quota_v2.c > @@ -303,7 +303,7 @@ static uint find_free_dqentry(struct dquot *dquot, int *err) > printk(KERN_ERR "VFS: find_free_dqentry(): Can't remove block (%u) from entry free list.\n", blk); > goto out_buf; > } > - dh->dqdh_entries = cpu_to_le16(le16_to_cpu(dh->dqdh_entries)+1); > + le16_add_cpu(&dh->dqdh_entries, 1); > memset(&fakedquot, 0, sizeof(struct v2_disk_dqblk)); > /* Find free structure in block */ > for (i = 0; i < V2_DQSTRINBLK && memcmp(&fakedquot, ddquot+i, sizeof(struct v2_disk_dqblk)); i++); > @@ -445,7 +445,7 @@ static int free_dqentry(struct dquot *dquot, uint blk) > goto out_buf; > } > dh = (struct v2_disk_dqdbheader *)buf; > - dh->dqdh_entries = cpu_to_le16(le16_to_cpu(dh->dqdh_entries)-1); > + le16_add_cpu(&dh->dqdh_entries, -1); > if (!le16_to_cpu(dh->dqdh_entries)) { /* Block got free? */ > if ((ret = remove_free_dqentry(sb, type, buf, blk)) < 0 || > (ret = put_free_dqblk(sb, type, buf, blk)) < 0) { > -- > 1.5.3.7 >
-- Jan Kara <jack@suse.cz> SUSE Labs, CR --
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:
[PATCHSET] [bl]e*_add_cpu conversions
,
, (Tue Feb 12, 7:06 pm)
[PATCH] ufs: [bl]e*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
, Roel Kluin
, (Wed Feb 13, 5:41 am)
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
, Andrew Morton
, (Sat Feb 16, 1:28 am)
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
, Roel Kluin
, (Mon Feb 18, 7:22 pm)
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
, Marcin Slusarz
, (Tue Feb 19, 1:45 pm)
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
, Evgeniy Dushistov
, (Tue Feb 19, 3:16 pm)
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
, Marcin Slusarz
, (Sun Mar 9, 6:21 am)
Re: [PATCH] ufs: [bl]e*_add_cpu conversion
, Marcin Slusarz
, (Wed Feb 13, 2:21 pm)
[PATCH] sysv: [bl]e*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] sysv: [bl]e*_add_cpu conversion
, Christoph Hellwig
, (Thu Feb 14, 3:04 am)
Re: [PATCH] sysv: [bl]e*_add_cpu conversion
, Christoph Hellwig
, (Sat Feb 16, 9:31 am)
[PATCH] reiserfs: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
[PATCH] quota: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] quota: le*_add_cpu conversion
, Jan Kara
, (Wed Feb 13, 5:52 am)
[PATCH] ocfs2: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] ocfs2: le*_add_cpu conversion
, Mark Fasheh
, (Mon Feb 18, 5:03 pm)
[PATCH] ntfs: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
[PATCH] jfs: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] jfs: le*_add_cpu conversion
, Dave Kleikamp
, (Wed Feb 13, 5:51 pm)
[PATCH] ext4: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
[PATCH] ext2: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
[PATCH] scsi: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
RE: [PATCH] scsi: le*_add_cpu conversion
, Salyzyn, Mark
, (Wed Feb 13, 10:06 am)
[PATCH] ipw2200: le*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
RE: [PATCH] ipw2200: le*_add_cpu conversion
, Chatre, Reinette
, (Wed Feb 13, 12:54 pm)
[PATCH] hfs/hfsplus: be*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
[PATCH] gfs2: be*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] gfs2: be*_add_cpu conversion
, Steven Whitehouse
, (Wed Feb 13, 5:55 am)
[PATCH] affs: be*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
[PATCH] infiniband: be*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] infiniband: be*_add_cpu conversion
, Roland Dreier
, (Tue Feb 12, 8:32 pm)
[PATCH] ieee 1394: be*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] ieee 1394: be*_add_cpu conversion
, Stefan Richter
, (Sat Feb 16, 12:54 pm)
[PATCH] crypto: be*_add_cpu conversion
,
, (Tue Feb 12, 7:06 pm)
Re: [PATCH] crypto: be*_add_cpu conversion
, Roel Kluin
, (Wed Feb 13, 4:25 am)
Re: [PATCH] crypto: be*_add_cpu conversion
, Marcin Slusarz
, (Wed Feb 13, 2:36 pm)
Re: [PATCH] crypto: be*_add_cpu conversion
, Herbert Xu
, (Fri Mar 14, 4:24 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Sunil Naidu
Re: Linux 2.6.20-rc6
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Chris Snook
Re: init's children list is long and slows reaping children.
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
openbsd-misc
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Eric W. Biederman
Re: [PATCH 10/11] avoid kobject name conflict with different namespaces
Colocation donated by:
Who's online
There are currently
1 user
and
895 guests
online.
Online users
strcmp
Syndicate